Skip to content

Commit

Permalink
test: timezone test
Browse files Browse the repository at this point in the history
  • Loading branch information
slowhigh committed Jun 4, 2024
1 parent 0103231 commit 4f234f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ func main() {
slog.Error("Unfortunately can't load a location", "error", err.Error())
} else {
time.Local = location
//gocron.ChangeLoc(location)
gocron.ChangeLoc(location)
}

slog.Info("current time", "time", time.Now())

gocron.Every(1).Day().At("10:14").Do(func() {
gocron.Every(1).Day().At("10:17").Do(func() {
slog.Info("start cron", "time", *location)

var subscriptionArr []entity.Subscription
Expand Down

0 comments on commit 4f234f0

Please sign in to comment.