fix(cron): fix timezone display bug, add tz validation and skill docs

This commit is contained in:
Re-bin
2026-02-17 08:30:52 +00:00
parent 2c3a568e46
commit 6bae6a617f
5 changed files with 24 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ def _compute_next_run(schedule: CronSchedule, now_ms: int) -> int | None:
try:
from croniter import croniter
from zoneinfo import ZoneInfo
# Use the caller-provided reference time for deterministic scheduling.
# Use caller-provided reference time for deterministic scheduling
base_time = now_ms / 1000
tz = ZoneInfo(schedule.tz) if schedule.tz else datetime.now().astimezone().tzinfo
base_dt = datetime.fromtimestamp(base_time, tz=tz)