mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
Merge pull request #6503 from CausingBrick/issue-6495
date: fix date get timezone error while set utc time (#6495)
This commit is contained in:
commit
69b603bfe7
2 changed files with 12 additions and 4 deletions
|
@ -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!());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue