remind: Use local timezone for reminders

This commit is contained in:
Hamcha 2017-05-04 21:03:54 +02:00
parent 124345c02a
commit d69e748968

View file

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