diff --git a/lib/Cake/Utility/Validation.php b/lib/Cake/Utility/Validation.php index aae4cd626..a62e1c2ab 100644 --- a/lib/Cake/Utility/Validation.php +++ b/lib/Cake/Utility/Validation.php @@ -336,7 +336,7 @@ class Validation { * @see Validation::date * @see Validation::time */ - public function datetime($check, $dateFormat = 'ymd', $regex = null) { + public static function datetime($check, $dateFormat = 'ymd', $regex = null) { $valid = false; $parts = explode(' ', $check); if (!empty($parts) && count($parts) > 1) {