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.
incorrect time zone when logged out
DmcBoos
New
my bootstrap.php// Make sure a default time zone is set date_default_timezone_set('Asia/Colombo');
my js/global.jsvar offsetServer= -5; var d = new Date() var hourOffset = -Math.round(d.getTimezoneOffset() / 60) +offsetServer;
and my php.inidate.timezone = Asia/Colombo
under the those settings when i log in time is working correctly
but when logged out time is incorrect (extra 5 hours have been added incorrectly)
0
Comments
Did you read question 1 in the FAQ?
http://vanillaforums.org/discussion/comment/218971/#Comment_218971
http://vanillaforums.org/discussion/28420/faq-what-frequently-asked-questions/p1
the above links should solve your problem. assuming you are using vanilla 2.1.x or above.
2 rules to help you out.
Bonus and important:
get the bootstrap.php and global.js from the original core and don't change them.
should fix everything
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I already usin that code
$Configuration['Garden']['GuestTimeZone'] = "Asia/Colombo";
But not working for me .. time zone displaying incorrecty with + 5 hours
..
Did you correct your bootstrap.php and global.js.
reinstall those two programs from original source.
it should fix new posts once you do so and you have the config.php correct.
However, it will not reflect 1/2 hour timezones (this is a bug in vanilla).
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
what version number of vanilla are you using?
http://vanillaforums.org/discussion/comment/199091/#Comment_199091
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
hmm plzz fix this bug ... now - 30 min displaying incorrecty..
i reinstall those two programs from original source.
I'm running on Bristol time how do you think I feel? I am from the 19th century though.
grep is your friend.
good for you - you followed the instructions at last.
I believe they have placed this on the fast-track for vanilla 5.x scheduled to come out within a decade or two.
In the meantime you can
1) move to a country that has 1 hour time zones.
2) adjust your schedule by 1/2 hour
3) wait until you are 90 years old, by that time problem should be fixed.
4) change you time zone column in table to decimal
5) petition your country to change their time zone.
6) write a plugin that changes the displayed time by 1/2 hour,
https://github.com/vanilla/vanilla/issues/1626
it is a sliding enhancement. added , removed added removed.....
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.