Skip to content

Fix time zone handling with TZ=:/absolute/path#911

Closed
mrkline wants to merge 1 commit into
ogham:masterfrom
mrkline:fix-tz-lookup
Closed

Fix time zone handling with TZ=:/absolute/path#911
mrkline wants to merge 1 commit into
ogham:masterfrom
mrkline:fix-tz-lookup

Conversation

@mrkline

@mrkline mrkline commented Jul 12, 2021

Copy link
Copy Markdown

determine_time_zone() assumes that a TZ environment variable that
starts with : is a relative path, so TZ=:/absolute/path tries
(and fails) to load zone info from /usr/share/zoneinfo//absolute/path.

The GNU libc manual suggests that both :relative/path
(mapping to /usr/share/zoneinfo/relative/path)
and :/absolute/path should work.

determine_time_zone() assumes that a `TZ` environment variable that
starts with `:` is a relative path, so `TZ=:/absolute/path` tries
(and fails) to load zone info from `/usr/share/zoneinfo//absolute/path`.

The GNU libc manual suggests that both `:relative/path`
(mapping to `/usr/share/zoneinfo/relative/path`)
and `:/absolute/path` should work.
@ariasuni

ariasuni commented Jul 12, 2021

Copy link
Copy Markdown
Collaborator

Ah, I’m sorry! I already did the job there: #857, but I didn’t merge it.

I thought about it and then wrote #867 which might fix the problem in a better way, but since it’s a bigger change, I’d prefer to know if exa’s author agree with it.

Feel free to comment on #857 if you think it could be improved, though, even if I would strongly prefer #867 be merged instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants