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

ls: --time-style with format string %Z gives timezone offset instead of name #7035

Open
jfinkels opened this issue Dec 30, 2024 · 1 comment
Labels

Comments

@jfinkels
Copy link
Collaborator

Environment: Ubuntu 20.04, uutils main branch (git commit 00d1866), GNU coreutils v8.30

Steps to reproduce:

TZ=UTC0 touch -d '1970-07-08 09:10:11' f
TZ=UTC0 ls -l --time-style="+%Z" f

What happens now: uutils ls shows a numeric offset for the timezone

-rw-rw-r-- 1 jeffrey jeffrey 0 +00:00 f

What I expected to happen: GNU ls shows the timezone name

-rw-rw-r-- 1 jeffrey jeffrey 0 UTC f

Notes: This causes a failure in the GNU test file tests/ls/time-style.sh.

We use the chrono package for time formatting. It seems that they have an open issue about this here chronotope/chrono#288

@jfinkels
Copy link
Collaborator Author

jfinkels commented Jan 3, 2025

Related to #5164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant