3 ms·
Without loss requires the version of the timezones data too. "it was 2:01am on November 5th, in America/Los_Angeles and the offset was -7 (retrieved from ICU v
by svieira 4y ago
Without loss requires the version of the timezones data too.
"it was 2:01am on November 5th, in America/Los_Angeles and the offset was -7 (retrieved from ICU v97)"
- captrb 4y agoInteresting point. I don't think I have that particular use case, but I can definitely imagine it. I'd think especially with dates in the far future and the timezone offsets are altered between the time of recording and the time value itself?
- giraffe_lady 4y agoIndividual timezones are pretty stable but a handful change every year in some way, often switching how they observe DST or something similar. If you have a truly global userbase and this actually matters, you'll definitely hit them.
- svieira 4y agoI can't take credit for this idea - it's from Jon Skeet: https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a-silver-bullet/ https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a...