From 8930725a873937e45aef1f17d21fe406352f72c3 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 17 Apr 2013 12:24:18 +0200 Subject: [PATCH] use date and time instead of timestamp --- lib/log/owncloud.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.39.5