From e5ff9eda69b830d99f8a31a01d2ddf8d45d447d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Sat, 15 Nov 2008 02:46:51 +0000
Subject: [PATCH] fix statistics axis labelling

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1004 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/statistics/www/showstats.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/statistics/www/showstats.php b/modules/statistics/www/showstats.php
index 9c26c65aa..cfb664e7b 100644
--- a/modules/statistics/www/showstats.php
+++ b/modules/statistics/www/showstats.php
@@ -129,9 +129,7 @@ foreach($results AS $slot => $res) {
 	$i++;
 }
 #echo 'set axis on lastslot [' . $lastslot . ']';
-$axis[] = date($dateformat_intra, ($lastslot*$slotsize) + $slotsize - $offset);
-#echo "<p> ". ($lastslot+1) . " = " . date($dateformat_intra, (($lastslot+1)*$slotsize - $offset) ) . " ";
-
+$axis[] =  $datehandler->prettyDateSlot($lastslot+1, $slotsize, $dateformat_intra); 
 #print_r($axis);
 
 
-- 
GitLab