Comment

Comment by ChrisMarshallNY

I’ve found the best way to deal with TZ conversions, is to use UTC as a common fulcrum.

I convert the target TZ to UTC, using my local utility, then use my local TZ utility to convert from UTC to local.

But I write iOS software, so I have very solid local tools at hand. It might be more problematic, on, say, a webserver.

On a related note, I wrote this utility[0], some time ago. It uses the TZ map from the TZ Boundary Builder project[1].

[0] https://github.com/LittleGreenViper/LGV_TZ_Lookup

[1] https://github.com/evansiroky/timezone-boundary-builder

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton