Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
qiang.xue committed Sep 15, 2010
1 parent 50dbf10 commit 0c464b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/utils/CDateTimeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static function parse($value,$pattern='MM/dd/yyyy')
return false;
if(isset($hour) && $hour<12 && $ampm==='pm')
$hour+=12;
$i+=2;
$i++;
break;
}
default:
Expand Down Expand Up @@ -244,7 +244,7 @@ protected static function parseInteger($value,$offset,$minLength,$maxLength)

protected static function parseAmPm($value, $offset)
{
$v=strtolower(substr($value,$offset,2));
$v=strtolower(substr($value,$offset,1));
return $v==='am' || $v==='pm' ? $v : false;
}
}

0 comments on commit 0c464b7

Please sign in to comment.