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:
parent
ada18863a7
commit
7edd045206
2 changed files with 10 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue