View Full Version : locale time format
hi guys, does anyone know how to set the locale time format for australia while the site is hosted on powweb?
thanks
devinemke
1-31-02, 11:19 PM
Since Melbourne is in Australia's eastern timezone and Powweb is in California (US Pacific timezone) you need to offest your time forward by 18 hours.
$date_time = date ("l m-d-y, g:ia", time() + 64800);
This (when hosted on powweb) will return the current time in Melbourne. 64800 is the number of seconds in 18 hours.
thanks devinemke, i'm new to this, where exactly i should add the code in for phpnuke? (i should mention in the previous message that i'm using phpnuke, sorry)
devinemke
1-31-02, 11:45 PM
I've never used nuke, maybe a nuke user will chime in here. I assume the date is actually stored in a database for nuke. You'll have to figure out where the code that extracts the data from the db is and what variable name it is given and run the time() function on that varibale.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.