Repository navigation
Releases
v0.0.9
Update local tz mapping.
Full Changelog: v0.0.8...v0.0.9
v0.0.8
v0.0.8 — More reliable local time-zone detection
This release improves time-zone detection across Windows and Unix systems, while making the Windows mapping generator safer and easier to maintain.
Highlights
- Windows now uses the native
GetDynamicTimeZoneInformationAPI first, avoiding a subprocess during normal detection and improving handling when automatic daylight-saving adjustments are disabled. - The
tzutilfallback no longer causes a console window to flash in GUI and detached applications ([#15](#15), thanks [@williammartin](https://github.com/williammartin)). - Unix detection now handles relative
/etc/localtimetargets and symlinked parent directories more reliably. Time-zone extraction fromzoneinfopaths was also simplified ([#17](#17), thanks [@dolmen](https://github.com/dolmen)). TZenvironment values with the optional POSIX:prefix, such as:Europe/Tallinn, are now recognized correctly.- Added a runnable example demonstrating detection and loading of the resulting IANA time zone.
Mapping generator improvements
- Replaced the legacy IANA FTP downloader with HTTPS.
- Added download timeouts, response-size limits, HTTP status checks, and input validation.
- Improved archive extraction errors and generated-code formatting.
- Refreshed the Windows-to-IANA mapping and removed an invalid empty mapping.
- Live network tests are now opt-in through
TZLOCAL_LIVE_TESTS=1.
Compatibility note
The public tzlocal API is unchanged. The exported tzdata.FTPDownload helper was removed; this only affects programs importing that generator-oriented helper directly.
Contributors
Special thanks to first-time contributors [@williammartin](https://github.com/williammartin) and [@dolmen](https://github.com/dolmen).
Full changelog: v0.0.7...v0.0.8
v0.0.7
Add dual apache 2 license and fix go generate
v0.0.6
v0.0.5
v0.0.4
v0.0.3
Support dstoff in windows and updated tzmap