summaryrefslogtreecommitdiff
path: root/framework/Util
diff options
context:
space:
mode:
authorknut <>2008-07-20 16:04:35 +0000
committerknut <>2008-07-20 16:04:35 +0000
commit101e78e6dab863460d3cbc112d5d795370276fc7 (patch)
treeec2df752faec2c23878ecc708d235b142b2a8245 /framework/Util
parent5e82afde4d98b26b36fc14980efa75393d6ef77e (diff)
fixed #886
Diffstat (limited to 'framework/Util')
-rw-r--r--framework/Util/TSimpleDateFormatter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Util/TSimpleDateFormatter.php b/framework/Util/TSimpleDateFormatter.php
index 7eac630e..8da02aa6 100644
--- a/framework/Util/TSimpleDateFormatter.php
+++ b/framework/Util/TSimpleDateFormatter.php
@@ -301,12 +301,12 @@ class TSimpleDateFormatter
}
if ($i_val != $this->length($value))
throw new TInvalidDataValueException("Pattern '{$this->pattern}' mismatch", $value);
- //var_dump('month is '.$month);
if(!$defaultToCurrentTime && (is_null($month) || is_null($day) || is_null($year)))
return null;
else
{
$day = intval($day) <= 0 ? 1 : intval($day);
+ $month = intval($month) <= 0 ? 1 : intval($month);
$s = Prado::createComponent('System.Util.TDateTimeStamp');
return $s->getTimeStamp(0, 0, 0, $month, $day, $year);
}