Timezone fix (#19293)

* Frontend timezone fixes

Last recording date timezone was being applied twice, so it displayed the wrong date
Also, TZDate from react-day-picker could have been behaving incorrectly at times without a full date string

* Ensure returned day is parsed as midnight in specified timezone
This commit is contained in:
Josh Hawkins
2025-07-26 19:24:08 -05:00
committed by GitHub
parent 0b7a33d670
commit 898d1de875
2 changed files with 6 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ export default function ReviewActivityCalendar({
}
const parts = date.split("-");
const cal = new TZDate(date, timezone);
const cal = new TZDate(date + "T00:00:00", timezone);
cal.setFullYear(
parseInt(parts[0]),
@@ -70,7 +70,7 @@ export default function ReviewActivityCalendar({
}
const parts = date.split("-");
const cal = new TZDate(date, timezone);
const cal = new TZDate(date + "T00:00:00", timezone);
cal.setFullYear(
parseInt(parts[0]),