whoops rollover next day for minutes only
This commit is contained in:
2
main.go
2
main.go
@@ -52,7 +52,7 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if hour < now.Hour() || min < now.Minute() {
|
||||
if hour < now.Hour() || (hour == now.Hour() && min < now.Minute()) {
|
||||
now = now.Add(time.Hour * 24)
|
||||
}
|
||||
thenTime := time.Date(now.Year(), now.Month(), now.Day(), hour, min, 0, 0, now.Location())
|
||||
|
||||
Reference in New Issue
Block a user