From fc27096a6d5ed2f84a81c60be8115ddfff14173e Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Mon, 8 Nov 2021 08:47:58 -0500 Subject: [PATCH] impossible: change locale to time.Local --- plugins/impossible/impossible.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/impossible/impossible.go b/plugins/impossible/impossible.go index 6060a07..b3f7f3c 100644 --- a/plugins/impossible/impossible.go +++ b/plugins/impossible/impossible.go @@ -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) }