From 1ae8af29ce1e4ebb7919e8e95553358b9b6691bf Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 4 May 2017 21:04:47 +0200 Subject: [PATCH] Oops --- mods/remind.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/remind.go b/mods/remind.go index 24add97..f333ea1 100644 --- a/mods/remind.go +++ b/mods/remind.go @@ -186,7 +186,8 @@ 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, time.LoadLocation("Local")) + loc, _ := time.LoadLocation("Local") + targetDate := time.Date(year, month, day, hour, min, sec, 0, loc) if targetDate.Before(now) { return now, fmt.Errorf("Non posso ricordarti cose nel passato!") }