-
Notifications
You must be signed in to change notification settings - Fork 492
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
Comments
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? |
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 :
Recording an image shows INcorrect descriptive text, and correct on-image annotation. |
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. |
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.
Seems most likely. |
@roberttidey Shouldn't the title be based on the filename if the filename is already derived from the creation datetimestamp? |
When a recording is started (or a still image triggered) then the software creates a filename based on the current time using the naming template c_video_path in the config file. This name is used to both name the thumbnail and the video recording files. The date-time is when the process is started. If buffering is used then there will be video data from before this time and obviously the file itself is only closed when the recording finally terminates. The title you see on the web pages are effectively the thumbnail name (and therefore also the recording name. If you have changed the naming template then you could get date-timestamps in a different format. |
ok good, thats what I assumed.
well yes, but not really:
I guess I'm just still befuddled as to how the web interface thumbnail information can - at random - differ from the filename, annotation, and actual time of recording.
|
There is no separate database for this info. Everything is derived from the thumbnail name. So at the moment I to am confused about what is happening. If you could possibly zip up and post a short recording + thumbnail and a screenshot of web screen where it seems out of whack, then I will check further. |
Next time I notice such a case I will append it here. Thanks. |
The timestamp on the thumbnail title is always +1 hour compared to system time.
%Y-%M-%D--%h-%m-%s.%u [%k/20] %a
The text was updated successfully, but these errors were encountered: