JIMSMITH 0 Posted Friday at 06:25 AM (edited) Has anybody here used the tzdb project to retrieve the gmt offset as in gmt -6 etc. as in gmt -X for America/Havana or any other example that you can think of? FYI tzdb is located at Code Examples · pavkam/tzdb Wiki · GitHub Edited Friday at 06:26 AM by JIMSMITH Share this post Link to post
Der schöne Günther 316 Posted Friday at 08:12 AM It's specific to Windows, but I am just reading the registry from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones for all the timezones and offsets. Share this post Link to post
Anders Melander 1784 Posted Friday at 09:55 AM 1 hour ago, Der schöne Günther said: I am just reading the registry from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones for all the timezones and offsets. ...or the slightly less hacky method: EnumDynamicTimeZoneInformation and friends. 1 Share this post Link to post
Der schöne Günther 316 Posted Friday at 12:00 PM Thanks, I didn't know that. I still have to support Windows 7, so I can't use it. Still, good to know. Share this post Link to post