I noticed that if I use the <TIME> descriptor in the alert text template, it displays the time in Epoch time (a big integer) which is not very useful. To make it more readable, you can change line 108 in the thold_functions.php source from this:
$thold_alert_text = str_replace('<TIME>', time(), $thold_alert_text);
to this:
$thold_alert_text = str_replace('<TIME>', date('D m-d-Y h:i:s A', time()), $thold_alert_text);
You can format the date however you like using the PHP date format characters described on the PHP function page for date:
http://us2.php.net/manual/en/function.date.php
Hope this comes in handy for somebody.
Rick
HOWTO: Get thold alert to display readable time.
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Fri Mar 28, 2008 10:00 am
- Location: Atlanta, GA
Who is online
Users browsing this forum: No registered users and 5 guests