0
Welcome Guest! Login
0 items Join Now

Time Differences

    • Avius's Avatar
    • Avius
    • Newbie
    • Posts: 7
    • Thanks: 0

    Time Differences

    Posted 13 years 4 weeks ago
    • Just ran across a curiosity as I am setting up the site:

      This image is hidden for guests.
      Please log in or register to see it.



      You'll notice that the times are 4 hours off. I logged off / on, cleared cache... still being misreported. All other times on the site are right, but it looks like this one particular parameter (the session expiry one for the user in the upper right) is getting date data based on GMT rather than settings. Servertime is set to EST, PHP is set to EST, Joomla is set to EST. No idea where this one random time difference is coming from.

      Not that big of a deal, but now that I've noticed it I can't help but keep noticing it...
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Time Differences

    Posted 13 years 2 weeks ago
    • All I can say is that the profile info at the top right get's the lastvisitdate from the JUser object as loaded in Joomla. The module with the last users logged in gets it directly from the sessions table. So if there is a discrepancy it's in how this time is calculated in the joomla JUser object.
    • Avius's Avatar
    • Avius
    • Newbie
    • Posts: 7
    • Thanks: 0

    Re: Time Differences

    Posted 13 years 2 weeks ago
    • I'm new to Joomla, but it seems like this is an offset problem. The $lastvisitdate in the database is stored in GMT (as all times are) but when being called by the theme it isn't applying any sort of offset to it; just storing the time as GMT. All other times on the website work correctly (ie article publish times, kunena forum times, etc) - the only ones that don't work are those called by Rocket Themes.

      This same issue also exists in the Nebulae theme (when using the Features > Date feature, and with Client Side Date slider in the OFF position), but I was able to correct that one by forcing the offset into the code (features/date.php). I'm trying to find a way to force the offset into here as well but so far no good or viable results have occurred.

Time to create page: 0.195 seconds