From 7076f19c9bf8839d6bcf496fd3a4b2e315a6b9d1 Mon Sep 17 00:00:00 2001 From: hakanesnn <106948628+hakanesnn@users.noreply.github.com> Date: Tue, 28 Jan 2025 23:00:20 +0300 Subject: [PATCH] fix(cron): matching weekdayMap with os.date (#700) --- imports/cron/server.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/imports/cron/server.lua b/imports/cron/server.lua index b4d5316..fdeaa45 100644 --- a/imports/cron/server.lua +++ b/imports/cron/server.lua @@ -51,13 +51,13 @@ local maxUnits = { } local weekdayMap = { - sun = 0, - mon = 1, - tue = 2, - wed = 3, - thu = 4, - fri = 5, - sat = 6, + sun = 1, + mon = 2, + tue = 3, + wed = 4, + thu = 5, + fri = 6, + sat = 7, } local monthMap = {