Vanishing timestamps in 1.21.1
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
Vanishing timestamps in 1.21.1
Installed 1.21.1 last night. All seemed well, but I've noticed this morning that none of the images are getting time annotations on them any more. Anyone else noticed this, or have I done something daft?
Rick Hewett
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I've found the problem. If you're impatient then this patch
should get it working in the meantime.
Phil
Code: Select all
*** src/zm_monitor.h 22 May 2005 17:33:34 -0000 1.40
--- src/zm_monitor.h 15 Jun 2005 13:21:53 -0000
***************
*** 219,224 ****
--- 219,229 ----
strftime( label_time_text, sizeof(label_time_text), label_format, localtime( &ts_time ) );
switch ( token_count )
{
+ case 0:
+ {
+ strncpy( label_text, label_time_text, sizeof(label_text) );
+ break;
+ }
case 1:
{
snprintf( label_text, sizeof(label_text), label_time_text, name );
Phil
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK