What is the time zone used for tweets in Twitter API?
The timezone of each tweet is automatically converted to the local timezone. If you need UTC, you can use the .ToUniversalTime() method, for example:
myTweet.CreatedDate.ToUniversalTime();
The created_at field for a tweet in the Twitter REST API gives the timestamp in UTC.
If a user has configured their timezone with Twitter, the utc_offset field gives you the difference in seconds between their timezone and UTC. So,
"utc_offset":-28800
corresponds to -28800/3600 = -8 hours from UTC.
There are a couple of suggestions that this doesn't get adjusted for daylight savings.
The timezone of each tweet is automatically converted to the local timezone. If you need UTC, you can use the .ToUniversalTime() method, for example:
myTweet.CreatedDate.ToUniversalTime();
Time zone is in the user settings under delivery options.
Unfortunately, I think It is impossible. Twitter does not store any information related to local timezone. I found that user.utc_offset are always null.
© 2022 - 2024 — McMap. All rights reserved.