Properly using / handling DateTimeOffset in MongoDB
问题 public class ScheduledEvent : Event { public DateTimeOffset StartDateTime { get; set; } } StartDateTime = 5/27/2013 2:09:00 AM +00:00 representing 05/26/2013 07:09 PM PST What's recorded in MongoDB: > db.ScheduledEvent.find().toArray() [ { "_id" : BinData(3,"ZE2p31dh00qb6kglsgHgAA=="), "Title" : "Today 26th at 7:09pm", "Length" : "00:00:00", "MoreInformation" : "http://1.com", "Speakers" : [ { "_id" : BinData(3,"ndzESsQGukmYGmMgKK0EqQ=="), "Name" : "Mathias Brandewinder" } ], "Location" : { "