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