Skip to content

bug(date): Invalid dates accepted, while gnu reject them (Part 2) #13865

Description

@HackingRepo

Hi, uutils mainteners

that was the part 2 of the issue that double EST ESTand MEST EST accepted by uu now fixed, but still that edge case

relunsec@relunsec:~/software/coreutils/target/debug$ gnudate -d 'Jan 23 6:00PM GMT-1 EST'
gnudate: invalid date ‘Jan 23 6:00PM GMT-1 EST’
relunsec@relunsec:~/software/coreutils/target/debug$ ./date -d 'Jan 23 6:00PM GMT-1 EST'
Fri Jan 23 06:00:00 PM EST 2026
relunsec@relunsec:~/software/coreutils/target/debug$ 

that make nonsense GMT-1 and EST there are two different time zones, that uu must suspose say invalid date

and next we found another issue in uu date

relunsec@relunsec:~/software/coreutils/target/debug$ gnudate -d '023-060 MEST'
gnudate: invalid date ‘023-060 MEST’
relunsec@relunsec:~/software/coreutils/target/debug$ ./date -d '023-060 MEST'
Tue Aug 11 05:00:00 PM EDT 2026
relunsec@relunsec:~/software/coreutils/target/debug$ 

the parser confused and produced wrong dates

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