From 5cb85bab239700522c897519b945add04e8d5283 Mon Sep 17 00:00:00 2001 From: ras0q Date: Wed, 1 Nov 2023 19:43:23 +0900 Subject: [PATCH] :bug: fix daily date to jst --- utils/cron.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/cron.go b/utils/cron.go index 9112c6a4..545f6644 100644 --- a/utils/cron.go +++ b/utils/cron.go @@ -23,7 +23,7 @@ type timeTable struct { // webhookでtraQに送るjobを作成。 func InitPostEventToTraQ(repo *db.GormRepository, secret, channelID, webhookID, origin string) func() { job := func() { - now := setTimeFromString(time.Now().AddDate(0, 0, 0), "06:00:00") + now := setTimeFromString(time.Now().In(tz.JST), "06:00:00") tomorrow := now.AddDate(0, 0, 1) rooms, _ := repo.GetAllRooms(now, tomorrow, uuid.Nil)