Fixes bug in DateUtil
authorMatthias Schmidt <gravatronics@live.com>
Fri, 2 Mar 2012 20:50:50 +0000 (21:50 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 2 Mar 2012 20:50:50 +0000 (21:50 +0100)
`wcf\util\DateUtil::formatDate()` doesn't exist

wcfsetup/install/files/lib/util/DateUtil.class.php

index b98ad693088393d2731a07ebda4317cfac9740be..7cfb2fd378d7f839114487ee15385e845b9a925a 100644 (file)
@@ -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;
                }