Skip to content

date: date doesn't accept spaces after month #14649

Description

@Devel08

discovered by @cakebaker in #14614
uutils:

$ cargo run date -d "01.01. 2008 3:00 p.m."
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/coreutils date -d '01.01. 2008 3:00 p.m.'`
date: invalid date '01.01. 2008 3:00 p.m.'

GNU:

$ date -d "01.01. 2008 3:00 p.m."
Tue Jan  1 03:00:00 PM EET 2008

Tests

#[test]
#[ignore = "GNU compat: see uutils/coreutils#14649"]
fn test_date_allow_spaces_after_month() {
new_ucmd!().arg("01.01. 2008 03:00 p.m.").succeeds();
}

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