forked from Github/frigate
Review grid playback (#8971)
* Playback recording when clicking on review item * Add timeline overlay selector * Lint fixes * Lint fixes * Set video plays inline * Stop autoplay on open * Reverse order * Improve autoplay performance * Remove chromecast icon by default * Improve margin and remove lazy image loading to reduce jumping * Fix root margin for mobile * Fix scrolling behavior * Fix width
This commit is contained in:
committed by
Blake Blackshear
parent
e3387de48f
commit
3a33090984
@@ -143,8 +143,8 @@ export const formatUnixTimestampToDateTime = (unixTimestamp: number, config: UiC
|
||||
// fallback if the browser does not support dateStyle/timeStyle in Intl.DateTimeFormat
|
||||
// This works even tough the timezone is undefined, it will use the runtime's default time zone
|
||||
if (!containsTime) {
|
||||
const dateOptions = { ...formatMap[date_style]?.date, timeZone: options.timeZone, hour12: options.hour12 };
|
||||
const timeOptions = { ...formatMap[time_style]?.time, timeZone: options.timeZone, hour12: options.hour12 };
|
||||
const dateOptions = { ...formatMap[date_style ?? ""]?.date, timeZone: options.timeZone, hour12: options.hour12 };
|
||||
const timeOptions = { ...formatMap[time_style ?? ""]?.time, timeZone: options.timeZone, hour12: options.hour12 };
|
||||
|
||||
return `${date.toLocaleDateString(locale, dateOptions)} ${date.toLocaleTimeString(locale, timeOptions)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user