From 7525af28895f8aac873133612f7b8d6d39e2e55e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 2 Mar 2012 21:50:50 +0100 Subject: [PATCH] Fixes bug in DateUtil `wcf\util\DateUtil::formatDate()` doesn't exist --- wcfsetup/install/files/lib/util/DateUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/DateUtil.class.php b/wcfsetup/install/files/lib/util/DateUtil.class.php index b98ad69308..7cfb2fd378 100644 --- a/wcfsetup/install/files/lib/util/DateUtil.class.php +++ b/wcfsetup/install/files/lib/util/DateUtil.class.php @@ -269,7 +269,7 @@ class DateUtil { if ($year) { $age = self::format(null, 'Y') - $year; if (self::format(null, 'n') < $month) $age--; - else if (self::formatDate(null, 'n') == $month && self::formatDate(null, 'j') < $day) $age--; + else if (self::format(null, 'n') == $month && self::format(null, 'j') < $day) $age--; return $age; } -- 2.20.1