I store some objects in a Mongo database, they have Joda DateTime properties that have UTC as their time zone. Although saving works fine, and I see properties with the correct values ββin the collection, as soon as I receive objects through Java, the time zone is again set to UTC + 2.
This is in the collection:
"created" : ISODate("2013-07-26T20:36:57.890Z")
I am using Spring -Data-MongoDB to access the database.
Category category = mongoTemplate.findById(id, Category.class);
And I get the following:
2013-07-26T23:05:56.439+02:00
Is there any way to say that Mongo returns the timezone stored in the date?
Tips appreciated, thanks!
source share