Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date: ISO8601 date --i default format not supported. #4521

Closed
kidrigger opened this issue Mar 16, 2023 · 0 comments · Fixed by #4522
Closed

date: ISO8601 date --i default format not supported. #4521

kidrigger opened this issue Mar 16, 2023 · 0 comments · Fixed by #4522
Labels

Comments

@kidrigger
Copy link

kidrigger commented Mar 16, 2023

Info

date version: date (GNU coreutils) 8.32
Branch: main

The default behavior of YYYY-MM-DD format output on --iso-8601 flag is not available.

Example

$ date --i
2023-03-16

$ target/debug/coreutils date --i
error: a value is required for '--iso-8601 <FMT>' but none was supplied

For more information, try '--help'.
@sylvestre sylvestre added the good first issue For newcomers! label Mar 16, 2023
kidrigger added a commit to kidrigger/coreutils that referenced this issue Mar 17, 2023
`default_missing_value` set to `OPT_DATE` (`"date"`)
`num_args(0..=1)` required for `default_missing_value`.
 
Fixes: uutils#4521
kidrigger added a commit to kidrigger/coreutils that referenced this issue Mar 17, 2023
`default_missing_value` set to `OPT_DATE` (`"date"`)
`num_args(0..=1)` required for `default_missing_value`.

Using function name `test_date_rfc_8601_default`.
The function name `test_date_rfc_8601` is left intact for
compatibility.
 
Fixes: uutils#4521
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants