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

Timezone name specifier not working #1965

Closed
aplund opened this issue Nov 1, 2023 · 3 comments · Fixed by #2057
Closed

Timezone name specifier not working #1965

aplund opened this issue Nov 1, 2023 · 3 comments · Fixed by #2057

Comments

@aplund
Copy link

aplund commented Nov 1, 2023

I have the time block format set to

format = "$timestamp.datetime(f:'%F %a %R %Z')"

The output appears as

2023-11-02 Thu 09:36 +10:00

but the chrono docs say that %Z should be a local timezone name. Their example gives "ACST". Mine is

$ date +'%Z'
AEST

Can't figure out exactly why. But the chrono docs do say Formatting only, which I thought is what this is.

$ i3status-rs -V
i3status-rs 0.32.2
@MaxVerevkin
Copy link
Collaborator

MaxVerevkin commented Nov 11, 2023

@MaxVerevkin
Copy link
Collaborator

However we may implement is ourselves: chronotope/chrono#960 (comment)

@MaxVerevkin MaxVerevkin reopened this Nov 11, 2023
@bim9262
Copy link
Collaborator

bim9262 commented Apr 2, 2024

If we do implement this on our own, it should be opt-in. Personally I find it helpful to know my offset (which changes because of DST) when reviewing logs in UTC, and don't care what the name of the timezone is.

bim9262 added a commit to bim9262/i3status-rust that referenced this issue May 25, 2024
bim9262 added a commit to bim9262/i3status-rust that referenced this issue May 25, 2024
bim9262 added a commit to bim9262/i3status-rust that referenced this issue May 25, 2024
bim9262 added a commit to bim9262/i3status-rust that referenced this issue May 26, 2024
bim9262 added a commit to bim9262/i3status-rust that referenced this issue May 26, 2024
bim9262 added a commit to bim9262/i3status-rust that referenced this issue May 26, 2024
bim9262 added a commit to bim9262/i3status-rust that referenced this issue May 26, 2024
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 a pull request may close this issue.

3 participants