Commit 9e2b68c
authored
fix: generate valid benchmark calendar dates (JhaSourav07#1718)
## Summary
This PR fixes invalid date generation in the benchmark calendar dataset.
### Changes Made
* Added a base `Date` object for benchmark generation
* Replaced manual day-string construction with proper date arithmetic
* Ensured generated dates roll over correctly across month boundaries
### Problem
The previous implementation generated invalid dates such as:
* 2026-05-32
* 2026-05-45
* 2026-05-98
because the day portion was incremented directly without considering
calendar limits.
### Result
Benchmark data now contains valid chronological dates across all
generated weeks.
Closes JhaSourav07#16771 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 20 | + | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
30 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
0 commit comments