
Originally Posted by
Typo56
Okay, so the server time may be incorrect, but I've run similar code with other hosts and not had a problem. 250 seconds seems an awful lot out for a professionally hosted site. I'd expect it to be accurate to within one second.
I've uploaded the code to a eUKhost site. Here's the URL
[URL="http://www.bizdotbizdotbiz.biz/stockchallenge.co.uk/date.php"]
The code is:
<?
putenv("TZ=Europe/London");
$time_now = time();
$date = date("D, j M Y H:i:s",$time_now);
echo "Date = $date";
?>