mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 06:18:39 +00:00
More conflicts during rebase
This commit is contained in:
@@ -37,10 +37,11 @@ local_tz_name :: proc(allocator := context.allocator) -> (name: string, success:
|
||||
|
||||
// Looking for tz path (ex fmt: "UTC", "Etc/UTC" or "America/Los_Angeles")
|
||||
path_dir, path_file := filepath.split(path)
|
||||
|
||||
if path_dir == "" {
|
||||
return
|
||||
}
|
||||
upper_path_dir, upper_path_chunk := filepath.split(path_dir[:len(path_dir)-1])
|
||||
upper_path_dir, upper_path_chunk := filepath.split(path_dir[:len(path_dir)])
|
||||
if upper_path_dir == "" {
|
||||
return
|
||||
}
|
||||
@@ -79,7 +80,6 @@ _region_load :: proc(_reg_str: string, allocator := context.allocator) -> (out_r
|
||||
delete(local_name, allocator)
|
||||
return nil, true
|
||||
}
|
||||
|
||||
reg_str = local_name
|
||||
}
|
||||
defer if _reg_str == "local" { delete(reg_str, allocator) }
|
||||
@@ -90,7 +90,7 @@ _region_load :: proc(_reg_str: string, allocator := context.allocator) -> (out_r
|
||||
if tzdir_ok {
|
||||
region_path := filepath.join({tzdir_str, reg_str}, allocator)
|
||||
defer delete(region_path, allocator)
|
||||
|
||||
|
||||
if tz_reg, ok := load_tzif_file(region_path, reg_str, allocator); ok {
|
||||
return tz_reg, true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user