Skip to content

Commit 7bea19d

Browse files
author
Noah Lee
authored
Fix the bug of schedule (#3)
1 parent f2fbb35 commit 7bea19d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schedule.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (s *Schedule) Next(t time.Time) time.Time {
2020
}
2121

2222
origLoc := t.Location()
23-
t.In(loc)
23+
t = t.In(loc)
2424

2525
added := false
2626

@@ -107,7 +107,7 @@ func (s *Schedule) Prev(t time.Time) time.Time {
107107
}
108108

109109
origLoc := t.Location()
110-
t.In(loc)
110+
t = t.In(loc)
111111

112112
subtracted := false
113113

0 commit comments

Comments
 (0)