coreutils
coreutils copied to clipboard
date --date does not support strings like "Jul 18 06:14:49 2024 GMT"
Dear maintainers,
unlike coreutils from the GNU project, date can not deal with the following situation:
date --date "Jul 18 06:14:49 2024 GMT" +%s
#> date: invalid date 'Jul 18 06:14:49 2024 GMT'
Can you please add support for time strings in that format?
Perhaps this is related to https://github.com/uutils/coreutils/issues/2685.
I'm working on this in https://github.com/uutils/coreutils/pull/6667
The parsing now lives in https://github.com/uutils/parse_datetime so that's where this would need to be fixed
This issue has been fixed in the meantime. On main:
$ cargo run -q date --date "Jul 18 06:14:49 2024 GMT" +%s
1721283289
Thanks for reporting!