Page 1 of 1

Vanishing timestamps in 1.21.1

Posted: Wed Jun 15, 2005 9:58 am
by lazyleopard
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?

Posted: Wed Jun 15, 2005 11:07 am
by zoneminder
Do you mean in the live view or in events? Have you checked the timestamp format in the monitor definitions is still there?

Phil

Posted: Wed Jun 15, 2005 12:15 pm
by lazyleopard
The timestamps in the images as stored in the events sub-directories.

Yes, the timestamp locations (0,0) and formats (%y/%m/%d %H:%M:%S) are still defined for all the monitors.

I've tried re-starting zoneminder after toggling ZM_TIMESTAMP_ON_CAPTURE both ways, too.

Posted: Wed Jun 15, 2005 1:14 pm
by zoneminder
Ah ok. I think is an actual bug as this area has changed slightly and I can reproduce the issue here. Added %%s to the timestamp will get it back but with the inclusion of the monitor name. I'll do a fix and get it out in the next day or so (to allow for any other issues to show).

Phil

Posted: Wed Jun 15, 2005 1:24 pm
by zoneminder
I've found the problem. If you're impatient then this patch

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 );
should get it working in the meantime.

Phil

Posted: Wed Jun 15, 2005 1:35 pm
by lazyleopard
Cheers. That patch fixed it. ;)