Hey I’m new to both this forum and PHP, so please be patient with me.
I am currently using a PHP script for comments box on my page which i found. When the user submits comments it returns the date of the server (USA) I want to know how to change the script to Europe time.
[php]
function formatDate($val)
{
list($date, $time) = explode(" “, $val);
list($year, $month, $day) = explode(”-", $date);
list($hour, $minute, $second) = explode (":", $time);
return date(“l, j.m.y @ H:ia”, mktime($hour, $minute, $second, $month, $day, $year));
} [/php]
Im just not sure where or how to implement [php]date_default_timezone_set(‘Europe/London’);[/php]
Any help would be appreciated.
Lee