uutils / uutils/coreutils

date: date doesn't accept spaces after month

Open Beginner friendly
#14,649 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

U - date
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

discovered by @cakebaker in https://github.com/uutils/coreutils/pull/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

https://github.com/uutils/coreutils/blob/41c3451342e079de38b2a18803ac43fc316be4e6/tests/by-util/test_date.rs#L3306-L3310

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the date tests in tests/by-util/test_date.rs at lines 3306-3310, then trace the date parsing entry point used by the date command. Reproduce the spaced-after-month input and compare its result with GNU date. Done means the command accepts the example and the regression test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
82/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.