From d69e748968ed9cd1b119710d666de53400caf6c6 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 4 May 2017 21:03:54 +0200 Subject: [PATCH] remind: Use local timezone for reminders --- mods/remind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/remind.go b/mods/remind.go index 4a76ec1..24add97 100644 --- a/mods/remind.go +++ b/mods/remind.go @@ -186,7 +186,7 @@ func parseDuration(date string) (time.Time, error) { default: return now, fmt.Errorf("Non capisco quando dovrei ricordartelo!") } - targetDate := time.Date(year, month, day, hour, min, sec, 0, now.Location()) + targetDate := time.Date(year, month, day, hour, min, sec, 0, time.LoadLocation("Local")) if targetDate.Before(now) { return now, fmt.Errorf("Non posso ricordarti cose nel passato!") }