date: fix %Z specifier does not print TZ abbr
fixes issue https://github.com/uutils/coreutils/issues/3756 for date util
description:
chrono crate ignores %Z specifier. only prints timezone offset. added crates chrono-tz and iana_time_zone to calculate the timezone abbreviation and replace %Z specifier with the the abbreviation.
Cool! Having two additional crates is a bit unfortunate, but if that is the best solution it's alright. I think the CI is failing because you didn't push changes to Cargo.lock.
Yeah! chrono v0.5 supposed to have a fix for this. will revisit this once v0.5 is released. https://github.com/chronotope/chrono/issues/970.
BTW, I have pushed the cargo.lock changes.
Still CI is failing. I have enabled Github Actions in my repo to run these tests myself. I will come back once all tests are passed.
Yeah! chrono v0.5 supposed to have a fix for this.
While you're fixing the tests, it might be nice to add a comment with this info to the code.
GNU testsuite comparison:
Skip an intermittent issue tests/tail-2/inotify-dir-recreate
Oops! I accidentally merged main branch again 😅 Now its waiting for CI 😳.
GNU testsuite comparison:
Congrats! The gnu test tests/mv/dir2dir is no longer failing!
Skipping an intermittent issue tests/tail/inotify-dir-recreate
GNU testsuite comparison:
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
GNU testsuite comparison:
GNU test failed: tests/cksum/md5sum. tests/cksum/md5sum is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/sha1sum. tests/cksum/sha1sum is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cp/same-file. tests/cp/same-file is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/factor. tests/factor/factor is passing on 'main'. Maybe you have to rebase?
Congrats! The gnu test tests/timeout/timeout is no longer failing!
GNU test failed: tests/cp/cross-dev-symlink. tests/cp/cross-dev-symlink is passing on 'main'. Maybe you have to rebase?
Is this PR good enough to merge? Please let me know if any changes required.
GNU testsuite comparison:
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)