𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.worldBanned from community to Programmer Humor@lemmy.ml · 2 years agoDaylight saving creator left the chat....lemmy.worldimagemessage-square41linkfedilinkarrow-up1403arrow-down119
arrow-up1384arrow-down1imageDaylight saving creator left the chat....lemmy.world𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.worldBanned from community to Programmer Humor@lemmy.ml · 2 years agomessage-square41linkfedilink
minus-squarePhrodo_00@lemmy.worldlinkfedilinkarrow-up2·2 years agotz offset is really not enough. You’d need to save the time zone id and/or offset, to have you library calculate deviations such as daylight savings. Even that, that would break if the user moves and now what they setup is using their previous timezone. Basically, I’m saying that storing the offset works most of the time, but not all of the time.
minus-squareDaxtron2linkfedilinkarrow-up1·2 years agoYeah that’s true, tzid is probably better than just a straight offset, that’s probably what I was thinking but it was late when I posted lol. And the user moving is really more an issue of making updating that accessible imo
tz offset is really not enough. You’d need to save the time zone id and/or offset, to have you library calculate deviations such as daylight savings.
Even that, that would break if the user moves and now what they setup is using their previous timezone.
Basically, I’m saying that storing the offset works most of the time, but not all of the time.
Yeah that’s true, tzid is probably better than just a straight offset, that’s probably what I was thinking but it was late when I posted lol. And the user moving is really more an issue of making updating that accessible imo