JIMSMITH 0 Posted November 22 (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 November 22 by JIMSMITH Share this post Link to post
Der schöne Günther 316 Posted November 22 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 1795 Posted November 22 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 November 22 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