From 518e8398b6b5326a094d3e33ca8bd00afbd1b674 Mon Sep 17 00:00:00 2001 From: Al Brookbanks Date: Mon, 29 Dec 2014 12:58:16 +0000 Subject: [PATCH] "this year" / "last year" fix --- admin/sources/dashboard.index.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/sources/dashboard.index.inc.php b/admin/sources/dashboard.index.inc.php index 720632b..662fda4 100755 --- a/admin/sources/dashboard.index.inc.php +++ b/admin/sources/dashboard.index.inc.php @@ -122,8 +122,8 @@ } } -$this_year = strftime('%G',strtotime('this year')); -$last_year = strftime('%G',strtotime('last year')); +$this_year = date('Y'); +$last_year = $this_year - 1; $chart_data['data'] = "['Month', '$this_year', '$last_year'],";