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?

edited August 2014 in Vanilla 2.0 - 2.8

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:

Comments

Sign In or Register to comment.