这是我的 php 代码:
echo date('m/d/Y h:i:s A T'),"<br>";
$match_date = strtotime(date('m/d/Y h:i:s A T'));
echo "match_date= ", $match_date, "<br>";
$test = new IXR_Date($match_date);
print_r($test);
但返回错误的月份和日期值:
08/19/2012 07:38:10 AM PDT
match_date= 1345387090
IXR_Date Object ( [year] => 2012 [month] => 2012 [day] => 2012 [hour] => 07 [minute] => 38 [second] => 10 )
怎么了?如何正确使用 IXR_Date?