Commit Graph
30 Commits
Author SHA1 Message Date
Arthur031221anddozn d046345202 Preserve fractional timestamps in timezone conversions
Apply timezone offsets to the normalized nanosecond timestamp.
Test fractional roundtrips, dates before 1970 and nanosecond carry.

Co-authored-by: dozn <16659513+dozn@users.noreply.github.com>
Signed-off-by: Arthur031221 <levi74108520963@gmail.com>
2026-10-04 03:39:11 +08:00
Jeroen van Rijn e7dbabf668 core:os -> core:os/old && core:os/os2 -> core:os 2026-02-09 15:50:21 +01:00
Jeroen van Rijn 8ed264680b Remove all core:os imports from JS targets
Fix `local_tz_name` on FreeBSD.
2026-02-09 15:07:27 +01:00
Jeroen van Rijn 13228c14e8 More conflicts during rebase 2026-02-08 13:04:44 +01:00
Jeroen van Rijn 0c341123cb More conflicts during rebase 2026-02-08 12:56:00 +01:00
Jeroen van Rijn 2f58776745 More conflicts during rebase 2026-02-08 12:54:20 +01:00
Jeroen van Rijn c265d297b5 core:time/timezone -> os2 2026-02-08 12:48:51 +01:00
A1029384756 916ec44ad1 [tz_unix] add lookup for TZDIR environment variable 2025-12-15 12:36:54 -05:00
A1029384756 7b635c031f [tz_unix] added additional search paths to match musl 2025-12-11 23:13:38 -05:00
Jeroen van Rijn 7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
gingerBill bb4bc316a4 for in string16; Support string16 across core 2025-08-02 12:20:35 +01:00
Colin Davidson 3407bd7cf9 better handle offset-0 case 2025-06-08 17:03:43 -07:00
Jeroen van Rijn ae5c92ac38 Enable odin check examples/all for JS. 2025-06-04 11:08:25 +02:00
dozn af0d6426c0 [core:time/timezone] Nanoseconds Not Preserved on Calls to timezone.datetime_to_tz 2025-04-04 04:01:02 -07:00
dozn dfd826ed86 Fix Times Which Support DST on Windows 2025-01-20 03:57:36 -08:00
gingerBill acbb14d87e Fix typo 2025-01-05 13:10:29 +00:00
gingerBill d718db473c Use array with linear search rather than a hash map. 2025-01-05 13:08:01 +00:00
Colin Davidson da3a7a25c7 oops 2024-11-20 14:07:23 -08:00
Colin Davidson 3bb73eacfc fix parsing issue around utc/localtime split 2024-11-20 12:09:32 -08:00
Colin Davidson b2d1fbba9c oops, missed a comma 2024-11-05 03:48:47 -08:00
Colin Davidson c9158b3220 add new test, better fail-check, and non-transitioning tz fix 2024-11-05 03:44:07 -08:00
Colin Davidson d8696badb6 add better comment about freebsd hacks 2024-10-21 21:58:32 -07:00
Colin DavidsonandFeoramund 9e00d610c8 Update core/time/timezone/tzdate.odin
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com>
2024-10-21 21:49:19 -07:00
Colin DavidsonandFeoramund d393d3292f Update core/time/timezone/tzdate.odin
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com>
2024-10-21 21:48:58 -07:00
Colin Davidson 5bf8852b2e add julian day rule resolvers 2024-10-10 10:31:46 -07:00
Colin Davidson 19c2b4d54f swap datetime_to_str to aprintf 2024-10-10 10:17:02 -07:00
Colin Davidson fcaa3abe47 delete local_str with the appropriate allocator 2024-10-10 09:24:50 -07:00
Colin Davidson ba6203f8d3 sort out windows enum names too 2024-10-10 09:19:04 -07:00
Colin Davidson 4c8e355444 tweaks per laytan suggestions 2024-10-10 09:14:29 -07:00
Colin Davidson a6502c3e8c Initial cut of timezones 2024-10-09 19:26:43 -07:00