this post was submitted on 08 Jul 2024
655 points (98.5% liked)

Programmer Humor

19570 readers
1707 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

Template

Further reading: RFC 3339 / ISO 8601

you are viewing a single comment's thread
view the rest of the comments
[โ€“] apprehentice@lemmy.enchanted.social 45 points 4 months ago (1 children)

When the API returns UTC, but the system insists on giving you local time... but there's an extension method that accepts DateTimeOffset?

[โ€“] bleistift2@sopuli.xyz 8 points 4 months ago

When the API returns UTC, but mandates that you give it an offset which it will add or subtract from the UTC time, while still adding the Z at the end.