remind: Use local timezone for reminders
This commit is contained in:
parent
124345c02a
commit
d69e748968
1 changed files with 1 additions and 1 deletions
|
@ -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!")
|
||||
}
|
||||
|
|
Reference in a new issue