Skip to content

Commit 106903c

Browse files
author
noah
committed
Fix the comment
1 parent 5e7fac5 commit 106903c

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
@@ -114,8 +114,8 @@ L:
114114
t = time.Date(t.Year(), t.Month()+1, 0, 23, 59, 0, 0, loc)
115115
}
116116

117-
// Subtract one month
118-
// Note that AddDate(0, -1, 0) has a bug for the normalization.
117+
// Change the time into the last day of the previous month.
118+
// Note that AddDate(0, -1, 0) has a bug by the normalization.
119119
// E.g) time.Date(2021, 6, 0, 23, 59, 59, 0, time.UTC).AddDate(0, -1, 0)
120120
t = time.Date(t.Year(), t.Month(), 0, 23, 59, 0, 0, loc)
121121

0 commit comments

Comments
 (0)