Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

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
Tagged:

Comments

  • 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') == '')
    date_default_timezone_set('America/Montreal');
    And change 'American/Montreal' to 'Europe/London'

    // 2014 EDIT: THIS IS NO LONGER CORRECT. The config setting is Garden.GuestTimeZone. In
    conf/config.php
    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: http://us3.php.net/manual/en/timezones.php
  • 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 => http://forum.myhsebnotes.com

Sign In or Register to comment.