Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
7 Hours Ago
It might be me, but...
Users who are currently logged on show their last activity was "7 Hours Ago." This time stamp remains until 7 hours after log off, then the time begins to count properly. The time appears in a search for users and on the users' member page.
Is this a Vanilla issue or something strange going on in my installation? Thanks!
Users who are currently logged on show their last activity was "7 Hours Ago." This time stamp remains until 7 hours after log off, then the time begins to count properly. The time appears in a search for users and on the users' member page.
Is this a Vanilla issue or something strange going on in my installation? Thanks!
0
This discussion has been closed.
Comments
PHP 5 by any chance? What versions of MySql and Vanilla?
Another thing to try is go into themes/account_profile.php, and change line 45 to look like this:
<p>'.TimeDiff($this->Context, $this->User->DateLastActive).'</p>
(removed , mktime())date_default_timezone_set('America/Chicago');
And for PHP versions less than five, use:
putenv('TZ=CST');
If nothing is different, try 'America/Los_Angeles' or 'TZ=PST' respectively, and see if that makes any difference to the numbers.
As far as I can tell, Vanilla is pretty consistent at handling dates in unix timestamp format, while MySql gets them in it's expanded format. Setting different timezones in PHP changes the conversion from MySql's date to the unix timestamp format--which is always based on the GMT time zone.
It is interesting that the only times that are wrong are user visit times. Everything else, such as when a comment is added, it correct. It does this with just Vanilla running and no other extensions.