From 2be385fed743f347a5dadf71018c647e0c1bffe8 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 25 Aug 2009 23:43:16 +1200 Subject: [PATCH] Correct timestamp formatting on example logging. --- inc/log_caldav_action.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/log_caldav_action.php b/inc/log_caldav_action.php index 9c55a159..7639d7c2 100644 --- a/inc/log_caldav_action.php +++ b/inc/log_caldav_action.php @@ -9,6 +9,10 @@ * @author Andrew McMillan * @copyright Morphoss Ltd * @license http://gnu.org/copyleft/gpl.html GNU GPL v2 +* +* This file is intended to be used as a template, perhaps the user of this service +* will want to log actions in a very different manner and this can be used as an +* example of how to go about doing that. */ /** @@ -22,7 +26,7 @@ function log_caldav_action( $action_type, $uid, $user_no, $collection_id, $dav_name ) { global $c; - $logline = sprintf( '%s %s %s %s %s %s', gmdate('Ymd"T"HMS"Z"'), $action_type, $uid, $user_no, $collection_id, $dav_name ); + $logline = sprintf( '%s %s %s %s %s %s', gmdate('Ymd\THis\Z'), $action_type, $uid, $user_no, $collection_id, $dav_name ); if ( !isset($c->action_log_name) ) { error_log( $logline ); return;