frigate icon indicating copy to clipboard operation
frigate copied to clipboard

Option to set timezone for event snapshot timestamps

Open ehn opened this issue 2 years ago • 4 comments

Describe what you are trying to accomplish and why in non technical terms Currently, the timezone of timestamps embedded in event snapshots seems to be either UTC or the host timezone. It would be great if it were possible to set this to the actual timezone of the geographical site being surveilled.

Describe the solution you'd like In Frigate 0.12, it is possible to set the timezone of the UI using the timezone setting in the ui section. One solution would be to have that control the timezone of the embedded timestamps, too. Another would be to have a separate setting. I can't think of a scenario where you would want different timezones for those settings, but perhaps one exists.

A third solution would be to have a setting for the geographical site location (coordinates), which Frigate could use to infer various things, including the timezone, but also the position of the sun/moon in the sky and whatnot that could possibly have implications on video surveillance in some future version. (Perhaps this should be a per-camera setting in case people are surveilling vast sites.)

Describe alternatives you've considered Perhaps changing the host timezone would help? However, IMHO, servers should always have their timezone set to UTC regardless of physical location.

Additional context Cf #5018.

ehn avatar Mar 17 '23 02:03 ehn

I also have this issue, which is exactly that the hardcoded timestampadded to the cropped snapshots produced by frigate contains the time in UTC. Passing timezone data from host only fixes the timestamps shown in the UI.

System logs and file modification times are also in UTC for reasons that I do not understand, but that seems to be a intentional decision by the frigate devs.

Is the UTC timezone in the snapshots also intentional? If so, why?

Frigate 0.14.1-f4f3cfa

martinlindhe avatar Oct 30 '24 13:10 martinlindhe

I set up everything today and noticed this and it is reaally pissing me off haha. Considered fixing myself but can't even find where snapshots are being made.

Jeeere avatar Dec 17 '24 22:12 Jeeere

This is the issue I have too. I receive a snapshot with a (US formatted) timestamp and it is not clear what date it is along with the time. I remember then I have to mentally adjust the time and then remember the date is in the US format (month first). However this is not fair on other people that look at it and just lose trust in the whole system.

I found we can set the timestamp format with below added to the configuration, but the UTC matter still remains with the time where people don't trust the timestamp (and often the date is off by one day due to time difference from UTC)

timestamp_style:
  format: "%d/%m/%Y %H:%M:%S"

jaymunro avatar May 11 '25 02:05 jaymunro

Upgraded from0.14.0 through 0.15.0 stable and now on 0.16.0_beta and the snapshot time stamps are showing local time. I guess I missed an upgrade alert.

Image

jaymunro avatar May 11 '25 08:05 jaymunro