date gives wrong RFC 3339 date time format
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Hi,
I just stumbled accross the problem that the Go runtime library does not accept the output of
date --rfc-3339=seconds
2025-12-14 01:03:46+02:00
on Kubuntu 25.10, as RFC3339 time format with it's parser. I first thought it was an error in the Go runtime library, but in fact
https://datatracker.ietf.org/doc/html/rfc3339#section-5.6
defines
date-time = full-date "T" full-time
i.e. a T instead of a space between Date and Time. So Go is right, this is not correct.
regards
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 command's --rfc-3339=seconds handling and compare its output with RFC 3339 section 5.6. Confirm the change by checking that the output uses T between the date and time and is accepted by the Go parser.
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
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100