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 settings in Vanilla 2

Hi I live in the UK my server is in the US. I have tried to find the file to change the timestamp with no luck. Can anyone advise what file and what code to put in for UK time settings. Many Thanks

Comments

  • It's ok I have found it and changed to london
  • Could you tell me what file it was you had to edit? Timestamps on my forum are all out by 6 hours!
    thanks,
  • lucluc ✭✭
    timestamps displayed should be in your local time, logout and log back in.
    That's calculated by javascript at that moment, and it may be stored somewhere in case it wasn't able to calculate for some reason IIRC.

    Servers location should just impact what are the timestamp in the database. Displaying should be fine.
  • In bootstrap.php file :

    // Make sure a default time zone is set
    if (ini_get('date.timezone') == '')
    date_default_timezone_set('America/Montreal');

    go to http://www.php.net/manual/en/timezones.php
  • lucluc ✭✭
    Well, it's not there that it should be set.
    This is just a workaround if the value is not set in php.
    It should be set in php.ini on your server. Obviously, if you're unable to set it, it could be changed here. But it will be back to default each time your update your forum as it's a core file.
  • Something a bit screwy going on. On my discussion pages the timestamp is correct (regardless of whether I edit the bootstrap.php file or not). On the comments page the timestamp is an hour behind, and my rss feeds are showing 5 hours behind, displaying:
    'Fri, 08 Apr 11 12:04:46 -0400' if the current time was 17.04:46.
    Any suggestions on whats going on, or more importantly how to resolve? I am using xsl to style a rss feed and display on our intranet, so its not very useful for those to be so out of date...
    thanks,
Sign In or Register to comment.