From: Matthias Schmidt Date: Fri, 2 Mar 2012 20:50:50 +0000 (+0100) Subject: Fixes bug in DateUtil X-Git-Tag: 2.0.0_Beta_1~1267^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7525af28895f8aac873133612f7b8d6d39e2e55e;p=GitHub%2FWoltLab%2FWCF.git Fixes bug in DateUtil `wcf\util\DateUtil::formatDate()` doesn't exist --- 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; }