I have a web API and locally the datetime object is serialized like this:
"timeInsert":{"date":"2014-12-09 01:15:19","timezone_type":3,"timezone":"Europe\/Ljubljana"}
When I deploy the application online on a server, the datetime is serialized like this:
"timeInsert":{"date":"2014-12-09 01:15:19.000000","timezone_type":3,"timezone":"Europe\/Ljubljana"}
Note the appended .000000 (microseconds). Both servers (local inside Vagrant and live) run on Linux Ubuntu 12.04.
Date command on both servers outputs the same: Mon Dec 22 08:20:28 UTC 2014 and both have PHP version 5.5.x (x differs a little bit).
What could be the reason the datetime is serialized different on both systems? I would like the date without microseconds. Thanks in advance!:)