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

date: support setting incoming timezone within --date #7340

Open
jfinkels opened this issue Feb 22, 2025 · 0 comments
Open

date: support setting incoming timezone within --date #7340

jfinkels opened this issue Feb 22, 2025 · 0 comments
Labels

Comments

@jfinkels
Copy link
Collaborator

Steps to reproduce:

TZ=America/New_York date -d 'TZ="Europe/Paris" 2017-01-01 00:00:00'

This is asking the question "When it is midnight on January 1, 2017 in Pairs, what is the date/time in New York?"

What happens now: uutils date fails to parse the string:

date: invalid date 'TZ="Europe/Paris" 2017-01-01 00:00:00'

What I expected to happen: GNU date prints the correct date and time:

Sat Dec 31 06:00:00 PM EST 2016

Notes: this is causing a failure in the GNU test file tests/date/date-tz.sh. This behavior is documented at https://www.gnu.org/software/coreutils/manual/html_node/Specifying-time-zone-rules.html

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