Commit 30fcc3e
authored
fix(time-range): use UTC date methods for 90-day backfill calculation (#897)
## Summary
- Use `getUTCDate()`/`setUTCDate()` instead of `getDate()`/`setDate()`
for the 90-day date backfill in `timeRangeToApiParams()`
- The input is a UTC ISO 8601 string, so date arithmetic should use UTC
methods to avoid off-by-one-day errors in non-UTC timezones
Flagged by Cursor Bugbot on #892
([comment](#892 (comment))).1 parent e37329b commit 30fcc3e
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
0 commit comments