From 934ea3f07d6e48cb7a1764863f72a9779e184217 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 31 Aug 2015 23:04:43 +1000 Subject: [PATCH] php - block stats table age doesn't include the oldest block - use a date stamp instead --- pool/page_blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool/page_blocks.php b/pool/page_blocks.php index 07a8b894..f7cc20ec 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -111,7 +111,7 @@ function doblocks($data, $user) $row = 'odd'; $desc = $ans['s_desc:'.$i]; - $age = daysago($since - $ans['s_createdate:'.$i]); + $age = gmdate('j/M H:i',$ans['s_createdate:'.$i]); $diff = number_format(100 * $ans['s_diffratio:'.$i], 2); $mean = number_format(100 * $ans['s_diffmean:'.$i], 2);