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;