From c2f49329e141410c8b07439c8c36233f835458d6 Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Thu, 2 Sep 2010 09:02:42 +0000 Subject: fixed #287 --- framework/Util/TSimpleDateFormatter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Util') diff --git a/framework/Util/TSimpleDateFormatter.php b/framework/Util/TSimpleDateFormatter.php index 07a59398..15842f27 100644 --- a/framework/Util/TSimpleDateFormatter.php +++ b/framework/Util/TSimpleDateFormatter.php @@ -301,7 +301,8 @@ class TSimpleDateFormatter } } if ($i_val != $this->length($value)) - throw new TInvalidDataValueException("Pattern '{$this->pattern}' mismatch", $value); + return null; + //throw new TInvalidDataValueException("Pattern '{$this->pattern}' mismatch", $value); if(!$defaultToCurrentTime && ($month === null || $day === null || $year === null)) return null; else -- cgit v1.2.3