可能你知道为什么这不起作用(试图在另一个时区接收时间戳):
$from_zone = 'Europe/Kiev';
$to_zone = 'US/Eastern';
$stamp = 1383897599;
$from_tz = new DateTimeZone($from_zone);
$to_tz = new DateTimeZone($to_zone);
$dateTime = new DateTime(null, $from_tz);
$dateTime->setTimestamp($stamp);
$dateTime->setTimeZone($to_tz);
$new_stamp = $dateTime->getTimestamp();
echo $new_stamp;
返回初始时间戳而不是新时间戳,我做错了什么?:\