Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Time of comment,post,message half an hour behind the actual forum logged user time?

edited August 2014 in Vanilla 2.0 - 2.3

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

Comments

Sign In or Register to comment.