Skip to content

Commit

Permalink
Fix to truncate minute (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Lee authored Dec 26, 2021
1 parent beac05d commit 6e0edbd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ L:
}
}

return t.In(origLoc)
return t.
Truncate(time.Minute).
In(origLoc)
}

// Next returns the previous time matched with the expression.
Expand Down Expand Up @@ -180,7 +182,9 @@ L:
}
}

return t.In(origLoc)
return t.
Truncate(time.Minute).
In(origLoc)
}

// dayMatches returns true if the schedule's day-of-week and day-of-month
Expand Down

0 comments on commit 6e0edbd

Please sign in to comment.