]> source.dussan.org Git - nextcloud-server.git/commitdiff
use date and time instead of timestamp
authorBernhard Posselt <nukeawhale@gmail.com>
Wed, 17 Apr 2013 10:24:18 +0000 (12:24 +0200)
committerBernhard Posselt <nukeawhale@gmail.com>
Thu, 1 Aug 2013 16:09:04 +0000 (18:09 +0200)
lib/log/owncloud.php

index 20df52c27bb114c7082f982d9931d8a9b838a80f..8c593528293964e48c0fb92d9e04eef20ba35cb4 100644 (file)
@@ -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");