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!") }