Correct timestamp formatting on example logging.

This commit is contained in:
Andrew McMillan 2009-08-25 23:43:16 +12:00
parent b82616e139
commit 2be385fed7

View File

@ -9,6 +9,10 @@
* @author Andrew McMillan <andrew@morphoss.com>
* @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;