Changeset 2479 for trunk/framework

Show
Ignore:
Timestamp:
07/20/2008 11:04:35 AM (6 months ago)
Author:
knut
Message:

fixed #886

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Util/TSimpleDateFormatter.php

    r1980 r2479  
    302302                if ($i_val != $this->length($value)) 
    303303                        throw new TInvalidDataValueException("Pattern '{$this->pattern}' mismatch", $value); 
    304                 //var_dump('month is '.$month); 
    305304                if(!$defaultToCurrentTime && (is_null($month) || is_null($day) || is_null($year))) 
    306305                        return null; 
     
    308307                { 
    309308                        $day = intval($day) <= 0 ? 1 : intval($day); 
     309                        $month = intval($month) <= 0 ? 1 : intval($month); 
    310310                        $s = Prado::createComponent('System.Util.TDateTimeStamp'); 
    311311                        return $s->getTimeStamp(0, 0, 0, $month, $day, $year);