style: apply cargo fmt formatting
Apply standard Rust formatting to:
- Align comments and improve readability in parse_date function
- Format test function calls for better parameter visibility
- Remove trailing whitespace
No functional changes, just code style improvements.
7e83262
2 days ago
by naoNao89
+3.66%
date: fix Windows timezone parsing with robust cross-platform solution
- Use fixed offset timezone to preserve chrono's exact timezone calculation
- Avoids Windows vs Unix timezone database differences in DST transitions
- Documents critical case: Windows CI interprets dates incorrectly due to different DST rules
- Trade-off: %Z shows numeric offset (+0100) instead of timezone abbreviation (CET)
- Updates tests to expect numeric offsets for cross-platform consistency
This ensures consistent behavior across all platforms by using chrono's
precise timezone calculations instead of relying on system timezone databases.
f4eafa4
2 days ago
by naoNao89
-3.67%
fix: handle timezone offset differences between chrono and jiff on Windows
When parsing dates without explicit timezone, verify that the system timezone
offset (from jiff) matches chrono's calculation. If offsets differ due to
different DST rules (especially on Windows), adjust the timestamp to ensure
the displayed time remains correct while preserving timezone abbreviations.
This fixes the Windows CI test failure where the time was off by an hour
or the timezone showed as UTC instead of CET for dates like '2025-01-15 8:30:00'
with TZ=Europe/Prague environment variable set.
d79e38f
2 days ago
by naoNao89
+5.04%
Merge branch 'main' into fix-date-timezone-parsing