Skip to content

date: Timezone abbreviation conversion should take into account the date to be parsed #7659

Closed
@drinkcat

Description

@drinkcat

Another timezone issue, not covered by #7597.

The timezone string depends on the date to be printed (i.e. in summer you'd have PDT vs PST, or CEST vs CET).

$ LANG= TZ=US/Pacific date -d 2025-01-01
Wed Jan  1 00:00:00 PST 2025
$ LANG= TZ=US/Pacific date -d 2025-06-01
Sun Jun  1 00:00:00 PDT 2025 
$ LANG= TZ=US/Pacific cargo run date -d 2025-01-01
Wed Jan  1 00:00:00 PDT 2025 <<< should be PST
$ LANG= TZ=US/Pacific cargo run date -d 2025-06-01
Sun Jun  1 00:00:00 PDT 2025

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions