mirror of https://github.com/velour/catbase.git
impossible: change locale to time.Local
This commit is contained in:
parent
fff478a9f6
commit
fc27096a6d
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue