-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tzdb to support Windows hosts, too
tz-rs's `TimeZone::local()` is only supported for Linux hosts, but will fail e.g. on Windows. Shadow-rs will fallback to use UTC dates, so it will still be usable on Window. tzdb's `local_tz()` bundles the Timezone Database, and works on Linux, Windows, MacOS, FreeBSD, and NetBSD. While having local datetimes on these host platforms is probably not particularly important, I still think it's a better user experience. tzdb itself uses tz-rs to make use of the timezone data.
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters