[dev] [kronolith-patch] display local time
Francois Marier
francois at nit.ca
Mon Aug 2 16:17:30 PDT 2004
Here's a quicky that quite useful when setting alarms and such in
Kronolith: displaying the local time at the bottom of the monthly
page.
I'm not sure if that's the right place for it, but it sure is handy
to see that the server time is on the wrong timezone when you are
trying to figure out why the alarms you set are not triggered.
Does anybody have a better place in mind to put this ?
Francois
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/kronolith/month.php kronolith/month.php
--- ../build/kronolith/month.php Sun Jun 27 12:59:12 2004
+++ kronolith/month.php Mon Aug 2 19:12:15 2004
@@ -150,4 +150,5 @@ foreach ($currentCalendars as $id => $ca
echo '</tr></table></td></tr></table>';
require KRONOLITH_TEMPLATES . '/category_legend.inc';
+echo "Local time: <b>" . str_replace("1800", "30", date("r")) . "</b>";
require $registry->getParam('templates', 'horde') . '/common-footer.inc';
More information about the dev
mailing list