I have webspace hosted in Canada, but I live in the uk so the timezone is out by 7 hours I think it is.
I can't find any tutorials on working with timezones, ideally I'd like to be able to set up something to print the time and have it adjusted by a single variable.
I noted on my local machine(Apache on Win 98) that this worked:
Code: Select all
$h = date("H")-5;
$time = date("$h.i");But that didn't work when on the server (Apache on linux)
Can anyone point me in the right direction of a solution?