Is it possible to have the web interface honor time settings?
I prefer using 24 hour time as opposed to 12 hour time. All the time stamps in the saved video files are in 24 hour time. However, when I use the web interface to view events, all the videos are show using 12 hour time. Is there a way to get SecuritySpy to honor this preference in the web interface?
Comments
Are you referring to the date/time overlay that gets drawn onto the video image? If so, then this is created by the camera itself, so you should go to the camera's own settings (via a web browser) and set it to use a 24-hour clock for the overlays. If you are referring to something else, please post a screenshot to demonstrate.
No, I'm not referring to the embedded timestamp in the video from the camera. I'm referring to how the videos are listed on the web interface. I use 24 hour time everywhere, but on the webpage, under captures in the list of videos, the time that is shown for the listed videos is 12 hour time and not 24 hour time. For some reason the web interface is converting the file timestamps to 12 hour time.
Notice that the times listed in the web UI are 12 hour time and not 24 hour time as are the time stamps encoded in the file names.
Thanks for clarifying. The format of these times is controlled by the "Time format" setting that you will find in the General Settings. If you set this to "24-Hour Time", you should get the time format that you want in the list of captured files (and elsewhere).
Security Spy is set to use 24-hour time, as you can see by the screenshot, it's just not honoring the 24 hour time setting in the web interface. If you think it should be, then this sounds like a bug.
Thanks for the clarification. I've refreshed my memory about how we implemented this: the "time format" as specified in the Settings is not used for the web interface, by design. This setting is used for any feature where you have to be physically in front of the Mac (e.g. Browser, Dashboard window etc.), however the rationale for not using it in the web interface is because web viewers could be in various different locations, each with their own time format preferences. Therefore, the web interface uses the default time format as specified on the particular device that the user is using to connect to the web interface. How it decides is largely automatic (using the default DateTimeFormat JavaScript method), but on a Mac, this should be determined by the "24-hour" setting in the "Date & Time" system settings panel. So can you check (on the Mac that you are using to view the web interface) to make sure that "24-hour" system setting is enabled?
I have checked - all my machines are using 24 hour time in the system settings panel. Both the local host that's running SecuritySpy and a macbook air accessing the web interface are showing 12 hour times instead of "24-hour time" that is shown in menu bar.
So it seems that the web browser is not honouring the system time format setting, which would seem like the obviously correct thing to do. That's a shame - it must be using some other criteria such as the locale (there's no set standard for this - it's up to the web browser). It's not clear that a better situation would be for us to switch to the time format set in SecuritySpy's settings, since this would impose this rigidly on all web users. Perhaps the best solution would be to simply make it adjustable for each web user - we'll see if we can add this in the near future. For now, I think this can be considered a bit of an edge case, since the browser's guess will be correct in almost all cases. Thanks for bringing this to our attention.