Browse Source

Fix strict warnings on Validation class.

mark_story 14 years ago
parent
commit
535b45b600
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Utility/Validation.php

+ 1 - 1
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) {