Fix datetime issue when posting an update