x
 
<!DOCTYPE html>
<html>
<body>
<?php
$tz=timezone_open("Asia/Shanghai");
$dateTimeNY=date_create("now",timezone_open("America/New_York"));
echo timezone_offset_get($tz,$dateTimeNY);
?>
</body>
</html>