AlarmKit across DST and time zones: relative or fixed?

When the clock changes, an alarm app still has to ring when its users expect it to. AlarmKit offers two schedules, but its docs say nothing about the hour that repeats or the one that’s skipped. So I checked on my test iPhone. When I changed its time zone, and again when the clocks fell back, AlarmKit kept daily relative alarms at the same clock time, all on its own. A daily 01:30 alarm even rang at both 01:30s in the repeated hour. In short, use a relative schedule for an alarm your users think of as a clock time. Use a fixed one only for a moment that doesn’t depend on where they are. Here’s what the system log said, and how to keep your date math in step with AlarmKit.

Two schedules: a clock time or a moment

AlarmKit gives you two kinds of schedule for an alarm. Which one fits depends on whether the alarm is tied to the clock or to a moment.

An alarm set for 07:00 is tied to the clock: after a flight, the user expects it at 07:00 local time. A reminder for a match that kicks off at 20:00 in London is tied to the moment, wherever they watch it from.

This is how I’d write two alarms tied to the clock and one tied to a moment:

// Weekdays at 07:00, on whatever clock the iPhone shows
let workdays = Alarm.Schedule.relative(.init(
    time: .init(hour: 7, minute: 0),
    repeats: .weekly([.monday, .tuesday, .wednesday, .thursday, .friday])
))

// Once, at the next 07:00 on that clock
let once = Alarm.Schedule.relative(.init(time: .init(hour: 7, minute: 0), repeats: .never))

// Once, at one instant wherever the person is (kickOffDate: a match's start)
let kickOff = Alarm.Schedule.fixed(kickOffDate)

Apple’s documentation describes .relative as “an alarm that can repeat and fire at a time relative to the device’s current time zone”. It’s the schedule Apple suggests for “events which need to take into account the current time zone. For example, a wake up alarm” (Apple Developer).

Then there’s .fixed, “a one-shot alarm that fires at a specific time, not a time relative to the current time zone”. Apple has it in mind for “events where the time won’t vary based on where the person is located”, such as a sports game (Apple Developer).

A relative schedule is just a time and a recurrence, with no date in it. With .never, it rings the next time the clock reaches that time. On a Monday, there’s no way to say “Thursday at 07:00” with it, so a one-off for a later day has to be .fixed.

A fixed date works the other way. It’s an instant, and when the time zone changes, it stays at that instant until your app reschedules it.

What the system did when the clock moved

On paper, a relative alarm follows the device’s current time zone. To see it happen, I had Wakeprint, the alarm app I make, schedule silent daily .relative alarms on a real iPhone. The results come from the iPhone’s system log. That’s where mobiletimerd, the system process that schedules and fires alarms, logs what it’s doing.

The first test was a time-zone change. With the iPhone on Istanbul time (UTC+3), I set a daily alarm for 12:57. At 09:38 Istanbul time, I switched the iPhone to Dhaka’s time zone (UTC+6), where it was 12:38.

mobiletimerd logged “significant time change detected, rescheduling alarms”, and the alarm’s trigger now read “12:57:00 PM Bangladesh Standard Time”. It rang 19 minutes later, at 12:57 in Dhaka, without my app rescheduling it. If AlarmKit had kept it as an instant, it would have rung at 15:57 there.

The second test came on 1 November 2026, when US clocks fell back from 02:00 to 01:00. At 01:07, with the iPhone on New York time, I set a daily alarm for 02:10. That night, the clock wouldn’t reach 02:10 until it had fallen back an hour.

Nothing rang at 06:10 UTC, which was 02:10 by the old clock and 01:10 by the new one. The alarm rang at 02:10 by the new clock, 07:10 UTC. My app didn’t run in between, and mobiletimerd logged the same rescheduling line when the clocks changed.

Both alarms followed the clock, with no help from my app. These two tests suggest you don’t need to watch for time changes to keep a .relative alarm on time.

A .fixed alarm is the opposite case, since by Apple’s description it keeps its instant. Only your app can move it.

Keep your own date math in step with AlarmKit

AlarmKit holds the alarm, but your app still shows when it’ll ring next, say in a countdown or a widget. It also decides when a one-off is done. That’s your own date math, and it has to agree with what AlarmKit will do.

Start from what the user chose, and store that: the hour, minute, weekdays, and a day if they picked one. Compute dates from it with the current calendar whenever you show or compare them.

My app finds a repeating alarm’s next ring like this:

// weekdays as Calendar numbers them: 1 is Sunday, 7 is Saturday
func nextRing(hour: Int, minute: Int, weekdays: [Int], after date: Date, calendar: Calendar) -> Date? {
    weekdays.compactMap { weekday in
        calendar.nextDate(
            after: date,
            matching: DateComponents(hour: hour, minute: minute, weekday: weekday),
            matchingPolicy: .nextTime,
            repeatedTimePolicy: .first,
            direction: .forward
        )
    }.min()
}

The .nextTime and .first policies decide what happens on the two nights a year when a time comes around twice or not at all. I’ll come back to both nights below.

Unlike the user’s hour and minute, a stored Date is an instant, so in another time zone it reads as a different clock time. That sets up a few traps.

Say you stored a daily 07:00 alarm’s next ring in Istanbul, and the user flies to London. In winter, that date reads 04:00 there, but the alarm rings at 07:00 London time. Anything you measure from the stored date, such as how long the user took to stop it, is off by three hours.

Time pickers work on a Date too. One winter day, a user in Berlin opens a 02:30 alarm in the editor, and before they save it, the iPhone switches to New York time. If Save takes the hour and minute from the picker’s Date, the alarm reads 20:30 in New York. If the user didn’t move the wheel, save the alarm’s own hour and minute instead.

After a flight east, a one-off set for 07:00 in London rings at 07:00 in Istanbul, while its stored date is still hours away. If your app goes by that date and schedules the alarm again, it rings a second time the next morning. So mark a one-off done once it has been stopped, or once its time has passed by the current clock.

A countdown should run between two dates, never between two clock times. At 01:07 on 1 November 2026 in New York, an alarm for 02:10 was 2 hours and 3 minutes away, because the clocks fell back in between. Add days with Calendar too, rather than adding 86,400 seconds, since a day can last 23 or 25 hours.

Recompute these dates at launch, whenever the app becomes active, and when the time changes. The system tells you about that last one. Foundation has NSSystemTimeZoneDidChange, “a notification posted when the time zone changes” (Apple Developer). UIKit’s significantTimeChangeNotification also covers “a change to, or from, daylight savings time” (Apple Developer).

So here’s how I schedule alarms in Wakeprint. Repeating alarms are .relative with .weekly, and AlarmKit owns their timing. A one-off is .relative with .never, so it follows the clock too.

A one-off becomes .fixed when the user has picked a later day for it, or when its time falls in an hour the clocks skip. It’s also .fixed when it’s due within 15 minutes; I covered why in Building a real alarm app on AlarmKit.

My app recomputes the dates it shows whenever it launches or becomes active, and on NSSystemTimeZoneDidChange. Each time, it reschedules those later-day one-offs for the same day and time by the new clock, and leaves .relative alarms to AlarmKit.

The hour that happens twice

When the clocks fall back, you get the same hour twice. On 1 November 2026, in most of the US, that was 01:00 to 01:59. So which 01:30 does a .relative alarm ring at?

AlarmKit’s documentation doesn’t say. For stop(id:), it says a repeating alarm is “rescheduled to alert or begins counting down at the next scheduled time” (Apple Developer). But it doesn’t say what “next” means inside that hour.

That night, I scheduled a silent daily alarm for 01:30, with my test iPhone set to Adak’s time zone. Adak is in Alaska’s Aleutian Islands, and its time zone is the last in the US to fall back. The alarm rang at the first 01:30 and was stopped within a minute. An hour later, at the second 01:30, it rang again.

The system log shows how. Right after the first ring was stopped, mobiletimerd computed the next fire date twice, within a few milliseconds of each other. First it counted from when the alarm had rung, then from the current time.

In this excerpt, I’ve removed the alarm’s ID and the line prefixes:

Computing next fire date for … after Sun Nov  1 01:30:00 2026
… has next fire date Mon Nov  2 01:30:00 2026 after Sun Nov  1 01:30:00 2026
…: Rescheduling alarm as it will fire again
… earliest trigger date: Sun Nov  1 01:30:47 2026
Alarm … alarm trigger: … date: "Sunday, November 1, 2026 at 1:30:00 AM Hawaii-Aleutian Standard Time"
… has next fire date Sun Nov  1 01:30:00 2026 after Sun Nov  1 01:30:47 2026
Next wake date is 2026-11-01 11:29:50 +0000

The log prints clock times without an offset, so the sixth line seems to run backwards. It doesn’t. The trigger on the line above names standard time, so the next fire date on the sixth line is the second 01:30. The wake date on the last line, in UTC, is ten seconds before that second 01:30.

Counted from the ring, the next 01:30 is tomorrow. Counted from a moment inside the repeated hour, it’s the second 01:30 tonight, and that’s the one the system kept.

Right after the stop, my app rescheduled the alarm with the same .relative schedule. AlarmKit put the rescheduled alarm on the second 01:30 as well, and that’s when it rang.

Your own screens can agree with the system, because Foundation gives the same two answers. You can see both with nextRing from earlier, using New York on the night of 1 November 2026:

var newYork = Calendar(identifier: .gregorian)
newYork.timeZone = TimeZone(identifier: "America/New_York")!
var utc = Calendar(identifier: .gregorian)
utc.timeZone = TimeZone(identifier: "UTC")!

let firstRing = utc.date(from: DateComponents(
    year: 2026, month: 11, day: 1, hour: 5, minute: 30
))! // 01:30 EDT, the first one
let stop = firstRing.addingTimeInterval(60) // 01:31 EDT
let everyDay = Array(1...7)

nextRing(hour: 1, minute: 30, weekdays: everyDay, after: firstRing, calendar: newYork)
// 2 November, 06:30 UTC: 01:30 tomorrow
nextRing(hour: 1, minute: 30, weekdays: everyDay, after: stop, calendar: newYork)
// 1 November, 06:30 UTC: the second 01:30, an hour later

On the device, my app agreed with the system. After the stop, it said the next ring was 58 minutes away, and it was.

Apple’s docs say .first returns “the first occurrence” when two or more times match (Apple Developer), but not what happens when the search starts inside the repeated hour. So pin both answers in a test.

Whether a daily alarm should ring twice that night is a product decision, and AlarmKit’s documentation doesn’t make it for you. In practice, the system’s own rescheduling had already picked the second ring before my app scheduled anything.

If you want your users to get one ring, you’ll have to handle that night yourself, and test it on a device. I haven’t tested an approach for that.

The hour that never happens

The night the clocks spring forward is the reverse: a whole hour goes missing. In New York on 14 March 2027, 01:59 is followed by 03:00.

Foundation handles that with its .nextTime policy, which maps a time in that hour to the next time that exists. Apple’s own example is a missing 2:37am, where “the result would then be 3:00am, if that does exist” (Apple Developer). So with nextRing, a daily 02:30 alarm reads 03:00 that morning and 02:30 the next.

What AlarmKit does with a .relative 02:30 that night isn’t documented, and I haven’t seen it happen. The next chance in the US is 14 March 2027. Until a device goes through that night, there’s no telling whether it rings at 03:00, at 03:30, or not at all that morning.

I don’t rely on it for now. My app schedules a one-off in that hour as .fixed at 03:00, the time it shows. A repeating alarm stays .relative, and the app shows 03:00 for that morning.

The skipped hour trips up time pickers too. On a 23-hour day, date(bySettingHour: 2, minute: 30, second: 0, of: today) returns 03:00, because the method’s default policy is .nextTime.

Build a picker’s date that way on that day, and a 02:30 alarm opens showing 03:00. If Save then reads the hour and minute back from it, the alarm becomes a 03:00 alarm for good, even if the user only changed its label. So give the picker a date on a 24-hour day, such as tomorrow, and keep the alarm’s own hour and minute unless the wheel moved.

While you’re at it, test Havana too. Its clocks spring forward at midnight, so on 14 March 2027 the day starts at 01:00. There’s no 00:30 that day.

Testing before the clocks change

Waiting for the next clock change isn’t much of a test plan. Start with unit tests, and pin both the time zone and the instant. Give each calendar its time zone, and build each instant from UTC components, as in the example above, never from Date.now.

Otherwise, a test that builds 07:00 three days from now in New York and expects daylight saving time passes all summer. It fails all winter, starting a few days before the clocks fall back.

My tests pin New York and Berlin on the days their clocks change, plus Havana’s missing midnight. For travel, they use far-apart zones such as Tokyo and Auckland.

Check the day’s length as well, since dateInterval(of: .day, for:) gives 23 hours on the day the clocks spring forward and 25 on the day they fall back.

On a device, change the time zone; don’t set the time by hand. Apple warns that manually adjusting the time on an iPhone “isn’t recommended and can affect alarms” (Apple Support). And when people travel, it’s the time zone that changes anyway.

US zones also fall back an hour apart. On 1 November 2026, New York changed at 06:00 UTC and Adak at 11:00 UTC, so a single night gives you several tries, hours apart.

Read the result in the system log, where mobiletimerd writes each alarm’s next fire date and a trigger that names its time zone. Then set the time zone back, and make sure it’s back.

Checklist

Before the next clock change, run through this list:

Wakeprint is an iPhone alarm app that gets to know your mornings. wakeprint.app

Download on the App Store