@[email protected] to Science [email protected]English • 1 year agoOr we could do metric timefiles.catbox.moeimagemessage-square201fedilinkarrow-up1945
arrow-up1945imageOr we could do metric timefiles.catbox.moe@[email protected] to Science [email protected]English • 1 year agomessage-square201fedilink
minus-square@[email protected]linkfedilinkEnglish24•1 year agoWrite everything in UTC, cast to local time zone for UIs Life problems solved
minus-square@[email protected]linkfedilinkEnglish4•1 year agoThat’s essentially what I did in my recent UI that I made for someone. You want to insert date time Select method: UTC, Time Zone, offset from GMT Enter time I convert it to UTC and send to backend
minus-square@[email protected]linkfedilinkEnglish3•1 year agoThat… still requires knowing which time zone to display. It doesn’t remove the requirement at all.
minus-square@[email protected]linkfedilinkEnglish3•edit-21 year agoand who implements localtime? You realize these functions call down to the system, and the system is very much ALSO written and maintained by coders… The point is SOMEONE actually does have to implement it and maintain it.
Write everything in UTC, cast to local time zone for UIs
Life problems solved
That’s essentially what I did in my recent UI that I made for someone.
That… still requires knowing which time zone to display. It doesn’t remove the requirement at all.
.localtime(utctime)
and who implements localtime? You realize these functions call down to the system, and the system is very much ALSO written and maintained by coders…
The point is SOMEONE actually does have to implement it and maintain it.