From 57311df5b3b0ae9db1fffb7cacfad57f65abd7fe Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Sun, 6 Jan 2013 23:16:23 +0000 Subject: fix date validators --- framework/Web/UI/WebControls/TRangeValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TRangeValidator.php b/framework/Web/UI/WebControls/TRangeValidator.php index 57538e88..98469e14 100644 --- a/framework/Web/UI/WebControls/TRangeValidator.php +++ b/framework/Web/UI/WebControls/TRangeValidator.php @@ -255,7 +255,7 @@ class TRangeValidator extends TBaseValidator if($dateFormat!=='') { $formatter=Prado::createComponent('System.Util.TSimpleDateFormatter', $dateFormat); - $value = $formatter->parse($value, $dateFormat); + $value = $formatter->parse($value); if($minValue!=='') $valid=$valid && $this->isGreaterThan($value,$formatter->parse($minValue)); if($maxValue!=='') -- cgit v1.2.3