Warning about date/times.

Oct 21, 2010 at 11:01 PM

With the merge of my patch set in changeset http://linqtotwitter.codeplex.com/SourceControl/changeset/changes/78645 the dates coming back from Twitter will all be assumed to be (and are, and will be) in UTC.  This means that the query dates that you might have been seeing in prior versions might not match what you'll get now.

This is a necessary change to ensure the DateTimes are always correct independent of local timezones.  If you directly display a DateTime to the end user and want to control the timezone it is displayed in, or want it to be displayed in local-time, they you will have to add that your rendering step. For local time, you can simply do a ToLocalTime() on the dates before formatting them. For other timezone adjustments, you should refer to some samples like this http://stackoverflow.com/questions/179940/c-convert-utc-gmt-time-to-local-time/455965#455965