mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 08:09:24 +00:00
# Add DST-Aware Timezone Handling for Alert Scheduling ## Summary Alerts previously used static timezone offsets that became outdated during DST transitions, causing alerts to fire at incorrect times (e.g., an alert configured for "9 AM Pacific" would fire at 10 AM after DST change). ## Solution - Added `chrono-tz` dependency for IANA timezone database support - Implemented DST-aware offset calculation at scheduling time using timezone strings (e.g., `America/Los_Angeles`) - Updated `get_next_trigger_time_non_aligned()` and `align_time()` to dynamically calculate offsets based on the scheduled timestamp - Maintains backward compatibility: alerts without timezone strings continue using fixed offsets