Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timestamp on thumbnail title is +1 hour #690

Open
BETLOG opened this issue Dec 7, 2023 · 5 comments
Open

timestamp on thumbnail title is +1 hour #690

BETLOG opened this issue Dec 7, 2023 · 5 comments

Comments

@BETLOG
Copy link

BETLOG commented Dec 7, 2023

The timestamp on the thumbnail title is always +1 hour compared to system time.

2023-12-07--12-21-17_betlogbeast_RPiCamControlv6613mycampizerocam3DownloadGoogleChrome
2023-12-07--12-21-10_betlogbeast_RPiCamControlv6613mycampizerocam3DownloadGoogleChrome

%Y-%M-%D--%h-%m-%s.%u [%k/20] %a

Raspbian GNU/Linux 10 (buster)
5.10.103+ #1529 Tue Mar 8 12:19:18 GMT 2022 armv6l GNU/Linux
RPi Cam Control v6.6.13

Kubuntu 23.10
6.5.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:59:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Chrome 119.0.6045.199
@BETLOG
Copy link
Author

BETLOG commented Jan 29, 2024

Lol. I was just thinking: "After seeing this for years I should probably report this"... and I already have.

2024-01-30--09-46-03_betlogbeast_FullscreenGeeqie

@roberttidey
Copy link
Collaborator

The annotation time stamp is derived from a localtime call which obeys the local time zone setting.

I did test a long time ago and it worked OK then.

What time zone settings do you have on your base raspberry?

@BETLOG
Copy link
Author

BETLOG commented Jan 30, 2024

$ timedatectl
               Local time: Tue 2024-01-30 23:53:29 AEST
           Universal time: Tue 2024-01-30 13:53:29 UTC
                 RTC time: n/a
                Time zone: Australia/Brisbane (AEST, +1000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

It's suspiciously similar to the way sometimes daylight savings gets applied in error to areas that don't do D.L.S. except afaik RPiCWI does it all the time.

even after :

$ sudo dpkg-reconfigure tzdata

Current default time zone: 'Australia/Brisbane'
Local time is now:      Tue Jan 30 23:58:10 AEST 2024.
Universal Time is now:  Tue Jan 30 13:58:10 UTC 2024.

Recording an image shows INcorrect descriptive text, and correct on-image annotation.

@roberttidey
Copy link
Collaborator

roberttidey commented Jan 30, 2024

Can you clarify that last sentence. I'm not sure what you mean.

I'll test that specific time zone when I get a chance.

Edit. It is possible the time library being used to compile RPiCamWeb is behaving differently and not accounting for any changes to DST policies in that region.

@BETLOG
Copy link
Author

BETLOG commented Jan 31, 2024

clarify

When i click 'record image' i get the same incorrect result as motion initiated video. ie: the image overlay shows correct timestamp, but the html GUI incorrectly shows +1 hour.
(basically i was just describing the method i used to confirm that sudo dpkg-reconfigure tzdata didnt have any effect either.)

It is possible the time library

Seems most likely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants