fix local time in archive test

This commit is contained in:
Abraham Toriz 2022-08-03 21:37:42 +08:00
parent c6c0d813c1
commit 7b0e045ae1
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 4 additions and 2 deletions

View File

@ -385,6 +385,8 @@ Proceed? [y/N] ");
#[test]
fn fake_and_split_work_well_together() {
std::env::set_var("TZ", "CST+6");
let args = Args {
hours: Some(2),
fake: true,
@ -409,8 +411,8 @@ Proceed? [y/N] ");
Timesheet: foo
ID Day Start End Duration Notes
1 Mon Aug 01, 2022 18:00:00 - 19:30:00 1:30:00 first
2 19:30:00 - 20:00:00 0:30:00 second
1 Mon Aug 01, 2022 04:00:00 - 05:30:00 1:30:00 first
2 05:30:00 - 06:00:00 0:30:00 second
2:00:00
------------------------------------------------------------
Total 2:00:00