time-tz
An implementation of the tz database for the time-rs Rust crate.
This implementation is based off of chrono-tz (https://github.com/chronotope/chrono-tz) but uses time-rs instead of chrono. This is designed to replace use of chono dependency which is impacted by CVE-2020-26235 (localtime_r thread safety issue linked to std::env::set_var).
This is currently an experimental crate.
Features
- Injects an
assume_timezonemember function to anyPrimitiveDateTime. - Injects a
to_timezonemember function to anyOffsetDateTime. - Provides a
getfunction to get a timezone by name.
Usage
use datetime;
use ;