summaryrefslogtreecommitdiff
path: root/framework/Util/TSimpleDateFormatter.php
diff options
context:
space:
mode:
authorrojaro <>2010-09-02 09:02:42 +0000
committerrojaro <>2010-09-02 09:02:42 +0000
commitc2f49329e141410c8b07439c8c36233f835458d6 (patch)
tree648af4cc72b0c94677e8d8d646f2b401791e60ef /framework/Util/TSimpleDateFormatter.php
parent8e4c6a85a6ca14814d305d2e1f5b1da56cba74ac (diff)
fixed #287
Diffstat (limited to 'framework/Util/TSimpleDateFormatter.php')
-rw-r--r--framework/Util/TSimpleDateFormatter.php3
1 files changed, 2 insertions, 1 deletions
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