Vanishing timestamps in 1.21.1

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Vanishing timestamps in 1.21.1

Post 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?
Rick Hewett
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post 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.
Rick Hewett
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

Cheers. That patch fixed it. ;)
Rick Hewett
Locked