diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-17 12:24:18 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-17 12:24:18 +0200 |
commit | 8471340db9a5d33fb2d77974ad3852cd52f016e5 (patch) | |
tree | 314ada1a9802f8fc73bba35a5c83649dc0d0f90c /lib/log/owncloud.php | |
parent | 3f7643ef46bab7cf3ab69a6907e060e5191fe950 (diff) | |
download | nextcloud-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.php | 3 |
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"); |