Skip to content

Commit

Permalink
🐛 fix daily date to jst
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0q committed Nov 1, 2023
1 parent ecd0c1f commit 5cb85ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5cb85ba

Please sign in to comment.