Page 1 of 1
Timeline Date format
Posted: Fri Mar 03, 2006 7:41 pm
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?
Posted: Tue Mar 07, 2006 11:20 pm
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
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.
Thanks
Posted: Thu Mar 23, 2006 3:20 pm
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
Posted: Thu Mar 23, 2006 4:29 pm
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