From 680e29b85b14031c2be0dfd93f77bf622f2540a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=AEittaG=20ordnasselA?= Date: Thu, 23 May 2019 10:15:17 +0200 Subject: [PATCH] Tentative tz fix --- mods/remind.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/remind.go b/mods/remind.go index 04feebc..c94e803 100644 --- a/mods/remind.go +++ b/mods/remind.go @@ -116,9 +116,9 @@ func remind_message(broker *tg.Broker, update tg.APIMessage) { _, todaym, todayd := time.Now().Date() _, targetm, targetd := timestamp.Date() if todaym != targetm || todayd != targetd { - whenday = "il " + timestamp.Format("2/1") + whenday = "il " + timestamp.In(loc).Format("2/1") } - whentime := "alle " + timestamp.Format("15:04:05") + whentime := "alle " + timestamp.In(loc).Format("15:04:05") broker.SendTextMessage(update.Chat, "Ok, vedrĂ² di avvisarti "+whenday+" "+whentime, &tg.MessageOptions{ ReplyID: &update.MessageID, })