diff options
| author | dozn <16659513+dozn@users.noreply.github.com> | 2025-01-20 03:57:36 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-20 03:57:36 -0800 |
| commit | dfd826ed86ffc8a8f8ce9ec52f99ba7bd7079382 (patch) | |
| tree | 905b1799b4e8ece3d75e0e29fd24ff30128d5111 /core/time/timezone | |
| parent | 00a3a8dc815f8afde4d53bf84a597bc81a48c062 (diff) | |
Fix Times Which Support DST on Windows
Diffstat (limited to 'core/time/timezone')
| -rw-r--r-- | core/time/timezone/tzdate.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/time/timezone/tzdate.odin b/core/time/timezone/tzdate.odin index 96df44299..e62400889 100644 --- a/core/time/timezone/tzdate.odin +++ b/core/time/timezone/tzdate.odin @@ -168,7 +168,7 @@ process_rrule :: proc(rrule: datetime.TZ_RRule, tm: time.Time) -> (out: datetime }, } record_sort_proc :: proc(i, j: datetime.TZ_Record) -> bool { - return i.time > j.time + return i.time < j.time } slice.sort_by(records, record_sort_proc) @@ -179,7 +179,7 @@ process_rrule :: proc(rrule: datetime.TZ_RRule, tm: time.Time) -> (out: datetime } } - return records[len(records)-1], true + return records[0], true } datetime_to_utc :: proc(dt: datetime.DateTime) -> (out: datetime.DateTime, success: bool) #optional_ok { |