mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-16 10:33:00 +03:00
Add comments
This commit is contained in:
@@ -15,9 +15,12 @@ function formatRecordingReviewTimestamp(
|
||||
const date = new Date(Math.floor(timestamp) * 1000);
|
||||
|
||||
if (timezone) {
|
||||
// when the UI timezone is configured, keep the URL readable by storing
|
||||
// local time plus a separate timezone query param
|
||||
return formatInTimeZone(date, timezone, "yyyy-MM-dd'T'HH:mm:ss");
|
||||
}
|
||||
|
||||
// without a configured UI timezone, fall back to UTC timestamp
|
||||
return formatInTimeZone(date, "UTC", "yyyy-MM-dd'T'HH:mm:ss'Z'");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user