Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Change Time Zone

edited July 2010 in Vanilla 2.0 - 2.8
Can u help? can anyone help me I live in the UK post times are showing -6 as my server is in the US. I have vanilla 2 and vforg theme can someone tell me the exact location of the file I need to change. Thanks


  • I have sorted the time out for posts when logged in how do I adjust the servertime to +6 when logged out?
  • LincLinc Detroit Admin
    edited July 2014
    in bootstrap.php find this:
    // Make sure a default time zone is set
    if (ini_get('date.timezone') == '')
    And change 'American/Montreal' to 'Europe/London'

    // 2014 EDIT: THIS IS NO LONGER CORRECT. The config setting is Garden.GuestTimeZone. In
    add this:
    $Configuration['Garden']['GuestTimeZone'] = 'DESIRED_TIMEZONE';
    e.g. 'GMT'.
  • Hi Lincon done it works fine now thanks for the info
  • LincLinc Detroit Admin
    edited July 2010
    No problem. Here's a list of all supported timezones for anyone else who stumbles upon this discussion:
  • To change Time Zone of on vanilla 2.0 Change the code on bootstrap.php => date_default_timezone_set('UTC'); to => date_default_timezone_set('TIME_ZONE');
    Its works, I did it with my website forum =>

Sign In or Register to comment.