Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change displayed time zone when not logged in. #1718

Closed
myfirstnameispaul opened this issue Oct 20, 2013 · 4 comments
Closed

Can't change displayed time zone when not logged in. #1718

myfirstnameispaul opened this issue Oct 20, 2013 · 4 comments

Comments

@myfirstnameispaul
Copy link

I'm using 2.1b2 and I have a problem reported in a previous version in a post at vanillaforums.org about the server time zone not being used when not logged in. I set date.timezone = America/Los_Angeles in php.ini (the setting was previously commented out).

In looking at my boostrap.php file, I can see date_default_timezone_set('UTC'); but according to the linked post, in a previous version it was:

if (ini_get('date.timezone') == '')
  date_default_timezone_set('America/Montreal');

Changing to date_default_timezone_set('America/Los_Angeles') Doesn't change anything.

How can I set the default time zone for users not logged in? Also, does the time zone change to match that of the users when they log in? I'm new to Vanilla and more accustomed to other forums that have this as a configuration option in user profiles.

@linc
Copy link
Contributor

linc commented Mar 14, 2014

Set Garden.GuestTimeZone in your config.php file

Select the timezone from PHP timezone support list: http://www.php.net/manual/en/timezones.php

@linc linc closed this as completed Mar 14, 2014
@myfirstnameispaul
Copy link
Author

Your instructions do nothing to resolve the issue. I need to know what the entry in config.php is supposed to look like.

@kaecyra
Copy link
Contributor

kaecyra commented Mar 14, 2014

His instructions were just fine.

$Configuration['Garden']['GuestTimeZone'] = "America/Los_Angeles";

@linc
Copy link
Contributor

linc commented Mar 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants