From 5e5c4cad451fd47de1dec7a650fcaa6f7e915146 Mon Sep 17 00:00:00 2001 From: Alexandre ABRIOUX Date: Fri, 23 Sep 2016 17:39:17 +0200 Subject: [PATCH] Fix opcache stats timezone --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 2a7f511..336376a 100644 --- a/index.php +++ b/index.php @@ -180,10 +180,10 @@ class OpCacheService 'blacklist_miss' => number_format($status['opcache_statistics']['blacklist_misses']), 'num_cached_keys' => number_format($status['opcache_statistics']['num_cached_keys']), 'max_cached_keys' => number_format($status['opcache_statistics']['max_cached_keys']), - 'start_time' => date_format(date_create("@{$status['opcache_statistics']['start_time']}"), 'Y-m-d H:i:s'), + 'start_time' => date('Y-m-d H:i:s', $status['opcache_statistics']['start_time']), 'last_restart_time' => ($status['opcache_statistics']['last_restart_time'] == 0 ? 'never' - : date_format(date_create("@{$status['opcache_statistics']['last_restart_time']}"), 'Y-m-d H:i:s') + : date('Y-m-d H:i:s', $status['opcache_statistics']['last_restart_time']) ) ] ]