summaryrefslogtreecommitdiffstats
path: root/lib/log/owncloud.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-17 12:24:18 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-17 12:24:18 +0200
commit8471340db9a5d33fb2d77974ad3852cd52f016e5 (patch)
tree314ada1a9802f8fc73bba35a5c83649dc0d0f90c /lib/log/owncloud.php
parent3f7643ef46bab7cf3ab69a6907e060e5191fe950 (diff)
downloadnextcloud-server-8471340db9a5d33fb2d77974ad3852cd52f016e5.tar.gz
nextcloud-server-8471340db9a5d33fb2d77974ad3852cd52f016e5.zip
use date and time instead of timestamp
Diffstat (limited to 'lib/log/owncloud.php')
-rw-r--r--lib/log/owncloud.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/log/owncloud.php b/lib/log/owncloud.php
index 20df52c27bb..8c593528293 100644
--- a/lib/log/owncloud.php
+++ b/lib/log/owncloud.php
@@ -49,7 +49,8 @@ class OC_Log_Owncloud {
public static function write($app, $message, $level) {
$minLevel=min(OC_Config::getValue( "loglevel", OC_Log::WARN ), OC_Log::ERROR);
if($level>=$minLevel) {
- $entry=array('app'=>$app, 'message'=>$message, 'level'=>$level, 'time'=>time());
+ $time = date("Y-m-d H:i:s", time());
+ $entry=array('app'=>$app, 'message'=>$message, 'level'=>$level, 'time'=> $time);
$handle = @fopen(self::$logFile, 'a');
if ($handle) {
fwrite($handle, json_encode($entry)."\n");