Hi All,
I'm sure there is a quick answer to this one:
I have a copper plan linux hosting account. I'm interested in displaying the date-time on my html pages using PHP.
No problem there, but I'm getting the gmt time when I need the local time. At the moment, the displayed time is one hour ahead (at 11:07 bst it is showing 10:07)
any ideas on how to do this?
I did some reading on the PHP help pages and am using the following code (which doesn't work unfortunately)
PHP Code:
<?php
setlocale(LC_TIME, 'en_UK');
$today = strftime("%B %d %G %R");
echo "$today<br><br>";
?>
Any ideas on this one?
Thanks in advance,
ShaunH