Daylight Savings Time and Pin Code Schedules

Posted November 10, 2022 by Customer Success ‐ 2 min read

How to create a pin code schedule that starts at the right time irrespective of daylight savings time.

Do I need to worry about Daylight Savings Time?

When creating a pin code schedule for a lock, the start and end time should be sent in UTC adjusted for whatever timezone offset the lock is currently set to at the time of the API call. You do not need to adjust for daylight savings time. For example, if you would like a schedule to start at 4:00 PM local time on a lock in Mountain Timezone, the time for the schedule in the API call should be:

  • if current time is MDT (UTC-6): 2200
  • if current time is MST (UTC-7): 2300

If you set the schedule to start at 4:00 PM local time, it will always be active at 4:00 PM local time, even after a timezone change.

When viewing the schedules via the Yonomi Platform in the graph, the current offset is calculated and will show the schedule relative to the current local timezone. For the 4:00 PM Mountain Time example, the graph will show:

  • if current time is MDT (UTC-6): 2200
  • if current time is MST (UTC-7): 2300

The schedule on the lock is still set to 4:00 PM local time and has not changed, even though the display in the graph will change by an hour when a lock goes in or out of daylight savings time.

Where does this apply?

This functionality applies to the PinCodeCredential trait and the createPinCodeCredential action. Note, this only applies to temporary schedules.


Reach out to your Customer Success Representative if you have any further questions.