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.
Time and time zone configuration
This forum software is really nice, but time configuration is epicly stupid.
You just have to place default time zone changing option somewhere in settings or at least in config.php. I have tried everything I found in older discussions, but time zone and formats are always wrong.
You just have to place default time zone changing option somewhere in settings or at least in config.php. I have tried everything I found in older discussions, but time zone and formats are always wrong.
0
Comments
There was an error rendering this rich post.
It also uses javascript (and a database cache per user) at login time, to determine which is the time difference and display the time correctly.
There was some modification for the yet to be released 2.0.18 to make it better.
So, the thing to do is to set your timezone correctly for your php installation.
What must one do to it in order to get accurate post times, which in my case are 1 day behind. thank you for your help.
There was an error rendering this rich post.
js, seems to be in js/global.js
The commit "Some fixes for timezone issues.":
https://github.com/vanillaforums/Garden/commit/d1cc08a5f991229d5e441a86fc3ae6921a85b475
There was an error rendering this rich post.
On debian, it's /etc/php5/apache/php.ini if using mod_php with apache.
Mine is /etc/php5/cgi/php.ini, as using a fast-cgi process.
https://github.com/vanillaforums/Garden/commit/d1cc08a5f991229d5e441a86fc3ae6921a85b475
The following 3 files from github were copied to my server with no change to the time zone. We are still almost a whole day behind on the server. Please I beg you -anyone who can help with this, I really need to get this fixed, its driving me crazy.
applications/dashboard/controllers/class.utilitycontroller.php
applications/vanilla/controllers/class.categoriescontroller.php
js/global.js
There was an error rendering this rich post.
Create a php.ini file (which must be done in cpanel) and then edit the time zone value: date.timezone = "Europe/London" ; put your timezone in the quotes.
The php.ini file will be created in your public_html folder so you need to transfer the file to the root folder of your vanilla install - unless you want to change the time zone for all your sites.
And your done.
There was an error rendering this rich post.
I was not allowed to change php.ini globally, and a local PHP file did not work out for me.
The hack that did this, was:
1. in "index.php" of your vanilla installation add these lines after line 19:
ini_set('date.timezone', 'Your/Timezone');
date_default_timezone_set("Your/Timezone");
2. in vanilla2export.php add the same lines as above after line 31
3. Export the data from the old forum
4. Import the data in your Vanilla installation.
This simple procedure got me the right times displayed in the forum.
As @luc mentioned, I'm looking forward to Vanilla 2.0.18 )