Skip to content

date: fails to parse "next monday" #7662

@jfinkels

Description

@jfinkels

Environment: Ubuntu 24.04, uutils main branch (git commit 3971bb3), GNU coreutils v9.6.38-2b088-modified

Steps to reproduce:

date -d "next monday"

What happens now: uutils date fails with error message:

date: invalid date 'next monday'

What I expected to happen: GNU date succeeds with

Mon Apr  7 12:00:00 AM EDT 2025

(That's midnight on the next Monday following the time of writing this issue.)

Notes: this is causing a failure in GNU test file tests/date/date-next-dow.pl. The underlying issue is uutils/parse_datetime#127.

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