Skip to content

Commit b45ca4e

Browse files
committed
If the timezone has changed then we need to reschedule the next scheduled run
1 parent 25d1557 commit b45ca4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/webapp/app/v3/services/upsertTaskSchedule.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ export class UpsertTaskScheduleService extends BaseService {
215215
});
216216

217217
const scheduleHasChanged =
218-
scheduleRecord.generatorExpression !== existingSchedule.generatorExpression;
218+
scheduleRecord.generatorExpression !== existingSchedule.generatorExpression ||
219+
scheduleRecord.timezone !== existingSchedule.timezone;
219220

220221
// find the existing instances
221222
const existingInstances = await tx.taskScheduleInstance.findMany({

0 commit comments

Comments
 (0)