From f476d21bdabc63f9397cbc398b5ade099f8bc3b3 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 26 Dec 2021 15:23:10 +0900 Subject: [PATCH] Fix the bug of schedule --- schedule.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schedule.go b/schedule.go index 58aeef0..890f622 100644 --- a/schedule.go +++ b/schedule.go @@ -20,7 +20,7 @@ func (s *Schedule) Next(t time.Time) time.Time { } origLoc := t.Location() - t.In(loc) + t = t.In(loc) added := false @@ -107,7 +107,7 @@ func (s *Schedule) Prev(t time.Time) time.Time { } origLoc := t.Location() - t.In(loc) + t = t.In(loc) subtracted := false