<?php
error_reporting(E_ALL);
date_default_timezone_set("UTC");
$date=time();
echo($date.' '.date("Y-m-d H:i:s", $date).'<script>
var date=new Date();
var d=date.getTime()+date.getTimezoneOffset()*60*1000;
var d1=new Date(d);
alert(Math.round(d/1000)+" "+d1);
</script>');
?>