Jump to content

Website Timezone


Tylor Eddy

Recommended Posts

G'day All,

I'm looking for some support in changing the websites timezone to a local timezone, i have consulted support on the issue, but they refuse to help me, saying its not their problem.

I have tried editing the local.config.php file with this

echo(date_default_timezone_set("Australia/Sydney"));

and

Config::Set(date_default_timezone_set("Australia/Sydney"));

both have been unsuccessful, how do i got about setting the website timezone properly ?

Any help would be great because currently, all my schedules are 8 hours behind.

Link to comment
Share on other sites

Or are you referring to the timezone of MySql?

im not sure, im referring to the timezone that is affecting my schedules, not sure if there are timezones running different things

anyways i used this:

bool date_default_timezone_set ( string $timezone_identifier )

do i include bool ?

Thanks for the help so far, hopefully i'll have this resolved shortly :)

ps. i just tried it with this:

bool date_default_timezone_set ( string Australia/Sydney )

and the site wont open, unsure why, all i got was a white screen.

Link to comment
Share on other sites

You have to look at the examples.

Try adding the following to the local.config.php

date_default_timezone_set('Australia/Sydney');

I just tried the code you suggested but it still ticks over at 4PM my time, which is midnight in America, this is being rather painful :(

Thanks for the help so far though lorathon, much appreciated.

Link to comment
Share on other sites

  • Moderators

If you have access to your php.ini you should be able to change from there, if not try creating a file called php.ini and putting the following in your website root, then restart apache or iis.

date.timezone =Australia/Sydney

Failing that try this,

http://www.electrictoolbox.com/php-change-timezone/

Link to comment
Share on other sites

If you have access to your php.ini you should be able to change from there, if not try creating a file called php.ini and putting the following in your website root, then restart apache or iis.

date.timezone =Australia/Sydney

Failing that try this,

http://www.electrictoolbox.com/php-change-timezone/

Sorry for my delayed reply,

I have tried all recommended settings except the mysql one, and am not sure how to restart apache, is that the reason why it isnt working ?

Sorry if the answer is starring me right in the face, i still havent seen it yet :P

Cheers Guys

Link to comment
Share on other sites

  • 2 weeks later...
  • Moderators

If you have access to your php.ini you should be able to change from there, if not try creating a file called php.ini and putting the following in your website root, then restart apache or iis.

date.timezone =Australia/Sydney

Failing that try this,

http://www.electrictoolbox.com/php-change-timezone/

After trying this you need to restart your apache / iis or what ever you are using.

What access do you have to your server?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...