Skip to content

Commit cf2f640

Browse files
Update cron schedule to reflect GMT+3 for work hours
1 parent bc4aaba commit cf2f640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/task-follower/scheduler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export default {
284284
async scheduled(event: ScheduledEvent, env: Environment, ctx: ExecutionContext): Promise<void> {
285285
// Handle different cron schedules
286286
switch (event.cron) {
287-
case '*/5 8-21 * * *': // Every 5 minutes during work hours (8 AM - 9 PM)
287+
case '*/5 5-18 * * *': // Every 5 minutes during work hours (8 AM - 9 PM converted from UTC to GMT+3)
288288
// Get current hour in UTC+3 (Turkey/Istanbul timezone)
289289
const now = new Date();
290290
const istanbulTime = new Date(now.toLocaleString('en-US', { timeZone: 'Europe/Istanbul' }));

0 commit comments

Comments
 (0)