From 318b6b50a36ab7069775ca92387968630111ff35 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 2 Nov 2007 01:10:21 +0000 Subject: [PATCH] Remove references to DateTime class, using SSDatetime instead git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44139 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- misc/Statistics.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/misc/Statistics.php b/misc/Statistics.php index 7a5eaf51d..e89aee461 100644 --- a/misc/Statistics.php +++ b/misc/Statistics.php @@ -41,14 +41,14 @@ HTML; $props = $record->toArray(); $props = $props[0]->toMap(); - $startyear = new DateTime($props['Created']); + $startyear = new SSDatetime($props['Created']); $startyear = $startyear->Format('Y'); - $startmonth = new DateTime($props['Created']); + $startmonth = new SSDatetime($props['Created']); $startmonth = $startmonth->Format('m'); if($filter == "day") { - $days = new DateTime($props['Created']); + $days = new SSDatetime($props['Created']); $days = $days->Format('t'); $sum = 0; @@ -59,7 +59,7 @@ HTML; foreach($record as $v) { $props = $v->toMap(); - $currdate = new DateTime($props['Created']); + $currdate = new SSDatetime($props['Created']); $curryear = $currdate->Format('Y'); $currmonth = $currdate->Format('m'); $currday = $currdate->Format('j'); @@ -85,7 +85,7 @@ HTML; foreach($record as $v) { $props = $v->toMap(); - $currdate = new DateTime($props['Created']); + $currdate = new SSDatetime($props['Created']); $curryear = $currdate->Format('Y'); $currmonth = $currdate->Format('m'); $currday = $currdate->Format('j');