Use UTC for cron
parent
9477889390
commit
5916c9e5e5
|
@ -17,7 +17,7 @@ import (
|
||||||
const secondsPerDay = 60 * 60 * 24
|
const secondsPerDay = 60 * 60 * 24
|
||||||
|
|
||||||
var (
|
var (
|
||||||
scheduler = cron.New()
|
scheduler = cron.New(cron.WithLocation(time.UTC))
|
||||||
secret []byte
|
secret []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,14 @@ package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/pagefaultgames/pokerogue-server/db"
|
"github.com/pagefaultgames/pokerogue-server/db"
|
||||||
"github.com/robfig/cron/v3"
|
"github.com/robfig/cron/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
scheduler = cron.New()
|
scheduler = cron.New(cron.WithLocation(time.UTC))
|
||||||
playerCount int
|
playerCount int
|
||||||
battleCount int
|
battleCount int
|
||||||
classicSessionCount int
|
classicSessionCount int
|
||||||
|
|
Loading…
Reference in New Issue