mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-26 01:13:48 +00:00
fix parsing issue around utc/localtime split
This commit is contained in:
@@ -574,4 +574,14 @@ test_check_timezone_edgecases :: proc(t: ^testing.T) {
|
||||
expected_tok_dt, _ := dt.components_to_datetime(2024, 10, 4, 9, 47, 0)
|
||||
|
||||
testing.expectf(t, datetime_eq(ret_dt, expected_tok_dt), "Failed to convert to Tokyo time")
|
||||
|
||||
|
||||
tog_tz, tog_load_ok := tz.region_load("Pacific/Tongatapu")
|
||||
testing.expectf(t, tog_load_ok, "Failed to load Pacific/Tongatapu timezone")
|
||||
defer tz.region_destroy(tog_tz)
|
||||
|
||||
ret_dt = tz.datetime_to_tz(utc_dt, tog_tz)
|
||||
expected_tog_dt, _ := dt.components_to_datetime(2024, 10, 4, 9, 47, 0)
|
||||
|
||||
testing.expectf(t, datetime_eq(ret_dt, expected_tog_dt), "Failed to convert to Togatapu time")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user