Forum Moderators: coopster
A script I am using is fetching the servers time and placing it into the DB using this: $timeNow = date("U");
My question is, how can I format this to 'my' local timezone?
I need to convert the sewrver timestamp into my loal times timestamp (+10)
'my' local timezone
if you mean local to the browser, that's a different issue...
I have tried this, but the result was a time 6hours behind.
$timeNow = mktime() + 36000; // Time now plus 10 hours (expressed in seconds)echo date("j F Y", $timeNow);