JIMSMITH 0 Posted 13 hours ago (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 13 hours ago by JIMSMITH Share this post Link to post
Der schöne Günther 316 Posted 11 hours ago 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 1783 Posted 10 hours ago 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 8 hours ago 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