diff --git a/lib/Cake/Utility/CakeTime.php b/lib/Cake/Utility/CakeTime.php index 3a914adc5..9b8db8b3d 100644 --- a/lib/Cake/Utility/CakeTime.php +++ b/lib/Cake/Utility/CakeTime.php @@ -970,8 +970,8 @@ class CakeTime { */ public static function i18nFormat($date, $format = null, $default = false, $timezone = null) { $date = self::fromString($date, $timezone); - if ($date === false && $invalid !== false) { - return $invalid; + if ($date === false && $default !== false) { + return $default; } if (empty($format)) { $format = '%x';