diff options
author | ctrlaltca <> | 2013-01-06 23:16:23 +0000 |
---|---|---|
committer | ctrlaltca <> | 2013-01-06 23:16:23 +0000 |
commit | 57311df5b3b0ae9db1fffb7cacfad57f65abd7fe (patch) | |
tree | 31f081f407b3aac5be97e0089e19b4beb6264726 /framework/Web/UI | |
parent | 11d9e3f39458c4870ca722ba1d3db0d5bba754dc (diff) |
fix date validators
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/WebControls/TRangeValidator.php | 2 |
1 files changed, 1 insertions, 1 deletions
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!=='') |