Gork@lemm.ee to Science Memes@mander.xyzEnglish · 8 months agoOr we could do metric timefiles.catbox.moeimagemessage-square191fedilinkarrow-up1949arrow-down138
arrow-up1911arrow-down1imageOr we could do metric timefiles.catbox.moeGork@lemm.ee to Science Memes@mander.xyzEnglish · 8 months agomessage-square191fedilink
minus-squareryannathans@aussie.zonelinkfedilinkEnglisharrow-up24arrow-down2·8 months agoWrite everything in UTC, cast to local time zone for UIs Life problems solved
minus-squareulterno@lemmy.kde.sociallinkfedilinkEnglisharrow-up3·8 months 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-squareMotoAsh@lemmy.worldlinkfedilinkEnglisharrow-up3arrow-down1·8 months agoThat… still requires knowing which time zone to display. It doesn’t remove the requirement at all.
minus-squareryannathans@aussie.zonelinkfedilinkEnglisharrow-up2arrow-down1·8 months ago.localtime(utctime)
minus-squareMotoAsh@lemmy.worldlinkfedilinkEnglisharrow-up3·edit-28 months 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.