mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-16 02:17:46 +01:00
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:
@@ -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]),
|
||||
|
||||
Reference in New Issue
Block a user