Closed lukaszolek closed 2 years ago
Are you running with the addon?
Yes, frigate is installed as a Supervisor addon
The Web UI is able to know about your local datetime formatting because it's done in JavaScript. The formatting in the media browser in HA comes from another source, the Frigate custom component/integration, which is in Python and has no knowledge of your local date/time formatting. If HA exposes a formatter to custom components, maybe that could be used, but barring that, we have to use a single datetime formatting for everyone.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi! I have this running as a docker and I have the similar issue.
Event date with Europe format:
The detecton camera provided by the frigate integration presents american date format:
I have the same problem. It would be nice to be able to change this with an environment variable but I would argue that it should default to ISO-8601 and not American format.
I was thinking the timezones of the environment of the docker container could be passed via api to HomeAssistant integration. Though not sure if this would help those using the HA Addon as have no experience of that.
Just adding my input to this too, running as a container in k8s here, and the timestamps and exposing the timezone as an env variable would be great if possible.
Any solutions to this? It's kind of annoying to do the math for a single timezone that my HOME network spans!
I'm in US timezone, but it's still off. My docker timezone is PST, but it seems to be in CST. I'm running docker image e64648364690. The timezones in both frigate:5000 and the integration in HA are off by an hour. I also think it would be awesome if the docker container defaulted to Zulu/GMT+0, that way you could compare logs against containers
Camera timestamp is PST, but frigate obviously thinks it's in the wrong timezone. The machine itself is set correctly to PST. I suppose I could fix this by volume mounting a timezone file into /etc. Oh looks like I already did that...
Never mind, my cameras are wildly off. Mea culpa
I'm in US timezone, but it's still off. My docker timezone is PST, but it seems to be in CST. I'm running docker image e64648364690. The timezones in both frigate:5000 and the integration in HA are off by an hour. I also think it would be awesome if the docker container defaulted to Zulu/GMT+0, that way you could compare logs against containers
Camera timestamp is PST, but frigate obviously thinks it's in the wrong timezone. The machine itself is set correctly to PST. I suppose I could fix this by volume mounting a timezone file into /etc. Oh looks like I already did that...
Never mind, my cameras are wildly off. Mea culpa
Are you passing /etc/localtime
to the container?
I am, though because it's a softlink on the local host I switched it to the actual file. The issue was the camera wasn't syncing with NTP anymore so the timestamp in the picture was out of sync. Firmware problems.
Are you passing
/etc/localtime
to the container?
Sorry for the noob question, but how do I do this? The recording filenames are 1 hour out (UTC?) from the actual time here (BST)?
Thanks
@gadgetbazza what installation method are you using? (docker CLI, docker compose, addon?)
A basic form of Docker Compose... Im running QNAP Container Station!
@gadgetbazza This is what it would look like in docker compose:
services:
frigate:
...
volumes:
- /etc/localtime:/etc/localtime:ro
...
Thanks, easy when you know how. That's sorted it for me... Thanks very much for the swift assist!
my events times are correct but the recordings where the video files go are still wrong. events for 12-1pm are in the 18 folder
my events times are correct but the recordings where the video files go are still wrong. events for 12-1pm are in the 18 folder
like has been said previously, Frigate stores recordings in UTC folder structure. User is not supposed to be interacting with the files directly, that is why there is an API / WebUI
how is that supposed to work? i can onlysee events not recordings or general movement? pretty limited
the webui only allows me to see events? no motion or general recordings so how does that even work out??
You use the 24/7 recordings viewer
it says Dates and times are based on the timezone America/Port-au-Prince
which makes no sense as i have the timezone set to EST
it says Dates and times are based on the timezone America/Port-au-Prince which makes no sense as i have the timezone set to EST
most likely you haven't configured that correctly then, but that is an entirely separate issue
I have installed Frigate as a docker container too, and I am passing in /etc/localtime
which shows up the correct time, however the snapshots time is still UTC and not the time I am passing in with /etc/localtime
so is there a way to fix this so that the snapshot time matches the current time zone?
Same here
@NickM-27 When I click the "Recordings" button on the camera I only see a summary of events (Frigate 0.12.1). Is there a delay for when 24/7 recordings are available?
@mr2k24 it's not a summary, click any hour and you can view it
@NickM-27 Thanks for the fast reply! You're right, I didn't notice each hour was segmented as an "events".
I just set up Frigate so I am still figuring things. Thanks again!
All my frigate clips have names with wrong timezone (Home Assistant is set up to Europe/Warsaw).
Events show correct time:
But media browser shows:
It would be also great if clip names would be formatted using my local datetime format (eg. 10.02.2021 14:05).