1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

date: use UTC if TZ is empty

This commit is contained in:
Daniel Hofstetter 2025-01-16 09:41:04 +01:00
parent ada18863a7
commit 7edd045206
2 changed files with 10 additions and 1 deletions

View file

@ -482,3 +482,12 @@ fn test_date_from_stdin() {
Sat Apr 15 18:30:00 UTC 2023\n",
);
}
#[test]
fn test_date_empty_tz() {
new_ucmd!()
.env("TZ", "")
.arg("+%Z")
.succeeds()
.stdout_only("UTC\n");
}