impossible: change locale to time.Local

This commit is contained in:
Chris Sexton 2021-11-08 08:47:58 -05:00 committed by Chris Sexton
parent fff478a9f6
commit fc27096a6d
1 changed files with 2 additions and 2 deletions

View File

@ -173,6 +173,6 @@ func (p *Impossible) refreshImpossible() bool {
}
func getTodaysMidnight() time.Time {
now := time.Now()
return time.Date(now.Year(), now.Month(), now.Day(), 24, 0, 0, 0, now.Location())
y, m, d := time.Now().Date()
return time.Date(y, m, d, 0, 0, 0, 0, time.Local)
}