Tentative tz fix
This commit is contained in:
parent
d92104eff3
commit
680e29b85b
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Reference in a new issue