Commit f44c524
committed
Fix ISO week calculation in backup rotation policy
Replace manual ISO week calculation with System.Globalization.ISOWeek API.
The manual calculation had bugs around year boundaries where thursday.DayOfYear
and jan4.DayOfYear could be from different years, causing incorrect week numbers.
This fixes the BackupRotationPolicyTests.ApplyRotationAsync_KeepsWeeklyBackups test
which was failing when backups crossed year boundaries (Dec 2025 -> Jan 2026).1 parent 1dda597 commit f44c524
1 file changed
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
179 | 170 | | |
180 | 171 | | |
181 | 172 | | |
| |||
0 commit comments