Skip to content

Commit a87a497

Browse files
committed
fix(schedule): default to utc when tz is nil
1 parent a74e652 commit a87a497

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/schedule/schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
// Occurrences returns all occurrence dates for a rule between startDate and endDate.
1313
func Occurrences(def config.RuleSchedule, startDate, endDate time.Time, tz *time.Location, anchor *time.Time) []time.Time {
1414
if tz == nil {
15-
tz = time.Local
15+
tz = time.UTC
1616
}
1717

1818
start := timeutil.DateAt(startDate.In(tz))

0 commit comments

Comments
 (0)