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.
0 • •
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://kaohsiungliving.org
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
http://kaohsiungliving.org
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •js, seems to be in js/global.js
The commit "Some fixes for timezone issues.":
https://github.com/vanillaforums/Garden/commit/d1cc08a5f991229d5e441a86fc3ae6921a85b475
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://kaohsiungliving.org
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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
http://kaohsiungliving.org
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
http://kaohsiungliving.org
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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 :o)
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •