mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #5301 from colrdavidson/more_tzone_bugs
Fix GMT+/- timezone handling
This commit is contained in:
@@ -577,12 +577,7 @@ parse_tzif :: proc(_buffer: []u8, region_name: string, allocator := context.allo
|
|||||||
footer_str := string(buffer[:end_idx])
|
footer_str := string(buffer[:end_idx])
|
||||||
|
|
||||||
// UTC is a special case, we don't need to alloc
|
// UTC is a special case, we don't need to alloc
|
||||||
if len(local_time_types) == 1 {
|
if len(local_time_types) == 1 && local_time_types[0].utoff == 0 {
|
||||||
name := cstring(raw_data(timezone_string_table[local_time_types[0].idx:]))
|
|
||||||
if name != "UTC" {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil, true
|
return nil, true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user