Closed itchyny closed 2 years ago
Hmmmm, good find. Previously the local timezone lookup are basically done through tzset
of C (which reads the contents of TZ
environment variable and falls back to /etc/localtime
in a nutshell) in the chrono crate, but I've changed it to use time
crate in #34. Since this crate doesn't support the time zone name lookup, I use another crate time-tz
, which appeared to implement the local timezone lookup by reading /etc/localtime
and doesn't respect TZ
environment variable.
I've opened an issue there, but we might have to support in our side.... and fully supporting this is difficult, as TZ=":Cuba"
for example require us to parse the timezone file /usr/share/zoneinfo/Cuba
.
But in 0.2.13, we get the same behavior as jq.