I try to insert local time in MongoDB
var time = DateTime.Now; // 03.05.2014 18:30:30
var query = new QueryDocument
{
{ \"time\", nowTime}
};
collection
The MongoDB driver is converting your DateTime to UTC.
If you don't want to bother with time zones, you could change the kind to UTC:
time = DateTime.SpecifyKind(time, DateTimeKind.Utc);
I would not recommed this because the database will store a "wrong" Date, but it will show you ISODate("2014-05-03T18:30:30.170Z").