#Nestjs/schedule DST

2 messages · Page 1 of 1 (latest)

hardy ibex
#

Does @nestjs/schedule support DST for cron jobs — i.e., automatic time changes in summer/winter (daylight saving time)?

gleaming rampart
#

It should. I belive you have to include your timezone in the decorated cron job. Your server should be set to UTC and you should realize that if the time shifts, i.e. 1 hour forward in Spring and one hour back in Fall, what that might mean to your cron job.