Skip to content

Cron monitor timezones not using daylight saving time adjustment #66763

@DaveHasteSpringer

Description

@DaveHasteSpringer

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. During non-DST (i.e. before 10th March 2024), configure a cron monitor on a schedule specified in the America/New_York timezone
  2. Observe the monitor running at the correct schedule for that timezone (i.e. EST)
  3. Wait until DST comes into effect (i.e. 10th March 2024)
  4. Observe that the monitor runs at an incorrect time: one hour early in EDT (which is now the correct timezone for America/New_York)

Expected Result

I would expect the cron monitor to continue run at the configured time, taking Daylight Saving Time adjustments into account.

Actual Result

In February I set up a monitor to run daily at 07:00 in the America/New_York timezone (which was EST at the time). It ran on schedule, as expected.

A few days ago, New York moved into DST (Daylight Saving Time), so the local time became EDT (i.e. no longer EST). Unexpectedly, the monitor doesn't seem to take the move to DST into account, so it now runs at 06:00 EDT, which is incorrect.

The attached screenshots from the Sentry web UI show that the configuration is specified correctly, but that an issue was raised one hour too early.

Config (correct):
Screenshot 2024-03-12 at 10 44 09

Issue raised (incorrect):
Screenshot 2024-03-12 at 10 44 32

Product Area

Crons

Link

https://springernature.sentry.io/crons/eus-weeknight-startup/

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions