mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
Fix processing
This commit is contained in:
parent
d8ec8b386e
commit
3c4fccd387
@ -227,8 +227,8 @@ const getUTCOffset = (date: Date, timezone: string): number => {
|
||||
|
||||
// safari doesn't like the default format
|
||||
if (isNaN(target.getTime())) {
|
||||
iso = iso.replace("T", " ").replace(".", "+");
|
||||
target = new Date(`${iso}`);
|
||||
iso = iso.replace("T", " ").split(".")[0];
|
||||
target = new Date(`${iso}+000`);
|
||||
}
|
||||
|
||||
return (target.getTime() - utcDate.getTime()) / 60 / 1000;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user