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
After February 6, this site will no longer have Facebook, Twitter, or OpenID sign-in options. Read our announcement about social media SSO support in 2.8 for more info.

Make sure you have a current, valid email address set in your profile and set a password so you can login without it. If you get locked out after that time, you can choose "Forgot Password" to fix it as long as a valid email is on your account.
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.