"created_at" in /streams shows incorrect time?

I’m reading the “created_at” param at https://api.twitch.tv/kraken/streams/NAME (v5 API) to check when exactly the stream went live. The string I got was “2017-02-02T13:37:59Z”, though I surely went live at 14:37:59 (local system time, GMT+1).

So does the “created_at” always return the time in the GMT timezone? Does it ignore daylight saving time? Or is it somehow still linked to user data of the streamer?

Any info on this is highly appreciated.

That timestamp is always UTC. In fact, all dates you get from the api should be - and should be flagged as an error if they are not.

1 Like

Gotcha, thanks!

The Z indicates the timezone is +0

1 Like

See also https://en.wikipedia.org/wiki/ISO_8601 regarding timestamp format standards


Thanks for the info. I wasn’t aware it’s a standard format, let alone an ISO standard. ^^

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.