I would like to have a javascript date object having its time set according to the web server.
<script type="text/javascript">
var date=new Date();
date.setTime(<?php echo time() ?>);
alert(date.toString()); //displays the date and time according to the timezone set on the client's computer
</script>
Is the above code reliable?
Many thanks to you all.