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 of comment,post,message half an hour behind the actual forum logged user time?
Hi...
Vanilla version=Version 2.0.18.11
Time of comment,post,message half an hour behind the actual forum users. See below image
It's same for post,comment,message..all are behind half of hour the actual forum logged user time
Most of our forum users are from Sri Lanka. all their user table HourOffset value = 9 (But it should 9.5)
I see vanilla calculating logged user as below equation
`$ClientHour = $this->Form->GetFormValue('ClientHour'); $HourOffset = Gdn_Format::ToTimestamp($ClientHour) - time(); $HourOffset = round($HourOffset / 3600);`
Even i set user table value HourOffset 9.5 as it will be round to 9
Problem:- Some countries like Sri Lanka,India their actual HourOffset should be 9.5. All Half-hour timezones don't work.
Please help me
Tagged:
0
Comments
ah i see same problem on this forum too
see image
@Linc @peregrine @vrijvlinder
any help
Only full hour offsets are supported as of now.
I am sure you could modify it to work with half hour offsets.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
as stated in a previous discussions on the forum - you would have to change the column structure relating to offset in the user table to allow decimals e.g. -5.50
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
This should get filed as a bug.
http://vanillaforums.org/discussion/comment/209903/#Comment_209903
thought it might be, I guess the last guy didn't care enough to file it as a bug, lets see if the next person cares enough to file it.
I wonder if this is a bug to related to hour offset, nobody responded.
http://vanillaforums.org/discussion/comment/213937/#Comment_213937
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.