Hi
My webhost is UK based, but when i use NOW() the time is GMT(-5). Is there a variable i can put inside the parenthesis to specify a timezone offset? or use a mathmatical calculation?
Many Thanks
CJ
there is a time zone thing i think, but i usually find it easier (since i dont know the time zone thing) to do $now = now()+(60605);
then you can use it for things like date("D j Y, h:i a",$now)
Thanks for trying, but i couldnt get that to work. instead i've made this, which does work.
$now[1] = date("G")+5; $now[2] = ":"; $now[3] = date("i"); $now[4] = ":"; $now[5] = date("s"); print("$now[1]$now[2]$now[3]$now[4]$now[5]");
jpmoriarty's version could work rewritten like this: date("D j Y, h:i a")
ah now hold on - it doesnt work 'cos now() doesnt exist!
THIS works as it should:
$now = mktime()+(60*60*5); echo date("D j Y, h:i a",$now);
and altexis the point of the thread was to offset the time by five hours.
ok
cheers