Johnny
Johnny

Reputation: 398

Incorrect DateTime returned using LinqToTwitter?

I'm returning tweets from LinqToTwitter using TwitterContext.Status.

however I've noticed that the CreatedAt property value returned for each tweet not the same as if I compare the CreatedAt to the representation displayed on twitter.com for the actual tweet.

The minutes part is obviously the same, however it looks like the user's timezone offset is not being applied to this value returned. Therefore the result maybe like +8 hours off.

Is this what should be expected from the result set?, or just a bug?

If we have to apply an offset, how would I go about retrieving this to apply to all tweets returned?

Upvotes: 1

Views: 264

Answers (1)

Joe Mayo
Joe Mayo

Reputation: 7513

CreatedAt, via the API, is a UTC time. The twitter.com, Web site, translates the date into your local time.

Upvotes: 3

Related Questions