Skip to content

Commit

Permalink
Fix test_time_zone_from_posix_tz in environments without a tzdb
Browse files Browse the repository at this point in the history
by specifying a POSIX TZ string instead of a time zone name.
  • Loading branch information
pitdicker committed Aug 31, 2023
1 parent a739648 commit 5ad87b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offset/local/tz_info/timezone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ mod tests {
assert_eq!(time_zone_local, time_zone_local_1);
}

let time_zone_utc = TimeZone::from_posix_tz("UTC")?;
let time_zone_utc = TimeZone::from_posix_tz("UTC0")?;
assert_eq!(time_zone_utc.find_local_time_type(0)?.offset(), 0);
}

Expand Down

0 comments on commit 5ad87b1

Please sign in to comment.