date: date doesn't accept spaces after month
Open
Beginner friendly
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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