Timeline Date format

Support and queries relating to all previous versions of ZoneMinder
Locked
skydiver
Posts: 86
Joined: Wed Jun 16, 2004 7:15 pm

Timeline Date format

Post by skydiver »

Where would I need to go to change the format of the date in the timeline event viewer? Is there and option setting or would I have to change it in the php code?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If you mean the date/time along the bottom of the chart then you will have to edit zm_html_view_timeline.php. Go to about line 562 and look for

Code: Select all

$title =
lines. These give you the various formats used. Go to http://uk.php.net/manual/en/function.date.php for details on the date function.

For the format in the event mouseover annotation go to line 751 or so. That uses strftime which you can also find on php.net.
Phil
skydiver
Posts: 86
Joined: Wed Jun 16, 2004 7:15 pm

Thanks

Post by skydiver »

Thanks,

I only needed to change the mouse over since it is displayed in the digit yy/mm/dd vs. the date format at the bottom in the xxx-xxx DD MMM YYYY format. It was confusing to us Americans who use the abbreviated format like mm/dd/yy.

Can this be keyed to an option in future releases? Perhaps the ability to set the date formats for the entire system in one place in the options screens.

Skydiver
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The language files would be the obvious places for this so that it would come preconfigured for different countries and styles. I'll see how easy it is to add it though it is confused slightly by the use of different language functuions in the first place :?
Phil
Locked