You've already forked parse_datetime
mirror of
https://github.com/uutils/parse_datetime.git
synced 2026-06-10 16:13:15 -07:00
Merge pull request #113 from jfinkels/set-utc-tz-in-test
Explicitly set timezone UTC0 in a unit test
This commit is contained in:
@@ -363,6 +363,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn single_digit_month_day() {
|
||||
std::env::set_var("TZ", "UTC");
|
||||
let x = Local.with_ymd_and_hms(1987, 5, 7, 0, 0, 0).unwrap();
|
||||
let expected = DateTime::fixed_offset(&x);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user