Skip to content

bug(date): Ignore next when a full date provided instead of trying Next against the date #14681

Description

@HackingRepo

Hi, uutils mainteners

we saw that when trying

relunsec@relunsec:~/software/coreutils/target/debug$ ./date  -d "Next Friday Sep 25 12:00:00 AM EDT 2026"
Fri Oct  2 12:00:00 AM EDT 2026
relunsec@relunsec:~/software/coreutils/target/debug$ gnudate  -d "Next Friday Sep 25 12:00:00 AM EDT 2026"
Fri Sep 25 12:00:00 AM EDT 2026
relunsec@relunsec:~/software/coreutils/target/debug$ 

same with

relunsec@relunsec:~/software/coreutils/target/debug$ ./date  -d "Next Sunday Sep 25 12:00:00 AM EDT 2026"
Sun Sep 27 12:00:00 AM EDT 2026
relunsec@relunsec:~/software/coreutils/target/debug$ gnudate  -d "Next Sunday Sep 25 12:00:00 AM EDT 2026"
Fri Sep 25 12:00:00 AM EDT 2026

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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