You must log in or register to comment.
So just for additional context:
This meme was brought to you by the following API response scheme:
{ "time": "2007-12-24 18:12", "servertimezone": "Europe/Vienna", "timezoneoffset": -8 }
when it could have just been
{ "date": "2007-12-24T18:21:00-07:00" }
It should be implemented in people’s brains.
How this goes, usually, is:
Them:…before 6PM.
Me: 6PM… Ours? The server’s? The user’s?
Them: GMT, of course.
Me: So that’s 7PM London right now, and changes to 6PM in November?
Them: What no are you stupid. Always 6PM GMT.
Me:* jumps off a cliff*
When the API returns UTC, but the system insists on giving you local time… but there’s an extension method that accepts DateTimeOffset?