aboutsummaryrefslogtreecommitdiff
path: root/core/time
diff options
context:
space:
mode:
authorColin Davidson <colrdavidson@gmail.com>2025-06-08 17:03:43 -0700
committerColin Davidson <colrdavidson@gmail.com>2025-06-08 17:03:43 -0700
commit3407bd7cf9d1af6dc79ed0476f1d009630088809 (patch)
tree055c7542ff2c7cbac3c3b68a7cfa7638f1b04eb8 /core/time
parent7813e9fb378753bf110f0ad4b5cc85e7f16336d4 (diff)
better handle offset-0 case
Diffstat (limited to 'core/time')
-rw-r--r--core/time/timezone/tzif.odin7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/time/timezone/tzif.odin b/core/time/timezone/tzif.odin
index 3fec7be53..804211ef4 100644
--- a/core/time/timezone/tzif.odin
+++ b/core/time/timezone/tzif.odin
@@ -577,12 +577,7 @@ parse_tzif :: proc(_buffer: []u8, region_name: string, allocator := context.allo
footer_str := string(buffer[:end_idx])
// UTC is a special case, we don't need to alloc
- if len(local_time_types) == 1 {
- name := cstring(raw_data(timezone_string_table[local_time_types[0].idx:]))
- if name != "UTC" {
- return
- }
-
+ if len(local_time_types) == 1 && local_time_types[0].utoff == 0 {
return nil, true
}