Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

mrkline
Copy link

@mrkline mrkline commented Jul 12, 2021

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
Copy link
Collaborator

ariasuni commented Jul 12, 2021

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.

None yet

2 participants