mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Correct timestamp formatting on example logging.
This commit is contained in:
parent
b82616e139
commit
2be385fed7
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user