Use UTC for cron

fasthttp
maru 2024-04-17 19:03:25 -04:00
parent 9477889390
commit 5916c9e5e5
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import (
const secondsPerDay = 60 * 60 * 24
var (
scheduler = cron.New()
scheduler = cron.New(cron.WithLocation(time.UTC))
secret []byte
)

View File

@ -2,13 +2,14 @@ package api
import (
"log"
"time"
"github.com/pagefaultgames/pokerogue-server/db"
"github.com/robfig/cron/v3"
)
var (
scheduler = cron.New()
scheduler = cron.New(cron.WithLocation(time.UTC))
playerCount int
battleCount int
classicSessionCount int