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
This commit is contained in:
Josh Hawkins 2025-07-26 16:56:25 -05:00
parent 480072b22d
commit c37f28880f
2 changed files with 3 additions and 3 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]),

View File

@ -80,7 +80,7 @@ export default function StorageMetrics({
const formattedEarliestDate = useFormattedTimestamp(
earliestDate || 0,
format,
timezone,
"UTC", // timezone is already converted from recordings summary endpoint
);
if (!cameraStorage || !stats || !totalStorage || !config) {