From c9a82e3ec6dacfda885e1468b5f249c8edc06794 Mon Sep 17 00:00:00 2001 From: sirrow Date: Sun, 6 Jul 2025 18:12:44 +0900 Subject: [PATCH] Designate JST for update timestamp --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 384d366..9c4e530 100644 --- a/main.go +++ b/main.go @@ -245,7 +245,11 @@ func main() { output := battleSchedule() output += salmonRunSchedule() - output += "updated at " + time.Now().Format("1/2 15:04") + "\n" + jst, err := time.LoadLocation("Asia/Tokyo") + if err != nil { + panic(err) + } + output += "updated at " + time.Now().In(jst).Format("1/2 15:04") + "\n" print(output) msgidstore := NewMsgIDStore()