Commit 54ebf53
committed
Simplify after date transition boundaries.
When we are looking for the first day of the week greater than a certain
date, we already have the start date. For some reason I was starting at
the first of the month instead of just starting at the given date. I was
performing the greater than or equal too in the loop, instead of just
looking for the day of the week. This will throw off the seek if the
first day of the week (i.e. first Friday on or after the 29th) occurs in
the next month.1 parent a2c5ac5 commit 54ebf53
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
0 commit comments