remind: Use local timezone for reminders

This commit is contained in:
Hamcha 2017-05-04 21:03:54 +02:00
parent 124345c02a
commit d69e748968
1 changed files with 1 additions and 1 deletions

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