1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

date: fix date get timezone error while set utc time (#6495)

This commit is contained in:
MengshengWu 2024-06-28 22:01:00 +08:00
parent 11e8476456
commit e4ec608781
2 changed files with 12 additions and 4 deletions

View file

@ -141,6 +141,16 @@ fn test_date_utc() {
}
}
#[test]
fn test_date_utc_issue_6495() {
new_ucmd!()
.arg("-u")
.arg("-d")
.arg("@0")
.succeeds()
.stdout_is("Thu Jan 1 00:00:00 1970\n");
}
#[test]
fn test_date_format_y() {
let scene = TestScenario::new(util_name!());