mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-26 16:34:43 +03:00
Implement Review Filters (#10031)
* Get cameras filter working * Implement label and review filters * Fix * Add time selection * Cleanup * Cleanup * cleanup * remove commented code * Fix
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { formatUnixTimestampToDateTime } from "@/utils/dateUtil";
|
||||
import { useMemo } from "react";
|
||||
|
||||
export function useFormattedTimestamp(timestamp: number, format: string) {
|
||||
const formattedTimestamp = useMemo(() => {
|
||||
return formatUnixTimestampToDateTime(timestamp, {
|
||||
strftime_fmt: format,
|
||||
});
|
||||
}, [format, timestamp]);
|
||||
|
||||
return formattedTimestamp;
|
||||
}
|
||||
Reference in New Issue
Block a user