mongodb/mongo-java-driver — pull request #281 by gigaclood (2014-11-11 22:34:26+00:00)
Title: Update JSONCallback.java

This change supports datetimes in different timezone.
You can insert for example this document:
String o = "{"
+ "\"fdata\" : {$date: \"2011-11-21T14:30:00.123-0400\"},"
+ "\"fdat2\" : {$date: \"2011-11-21T14:30:00.123Z\"},"
+ "\"fdat3\" : {$date: \"2011-11-21T14:30:00-0400\"},"
+ "\"fdat4\" : {$date: \"2011-11-21T14:30:00Z\"}"
+ "}";
DBObject dbo = (DBObject)JSON.parse(o.toString());
coll.insert(dbo);
and obtain four dates.