Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 9

CurtisOdenericgillette +7 guests

Edited time/date is in wrong time zone

This discussion is related to the Last Edited addon.
Our server is in the UK. Vanilla Forums displays the correct time and date, but the text displayed by the plug-in is five hours behind.

I can't see any options where I can tell it about our time zone.

Comments

  • Posts: 2,058
    Timezone is per-user as the HourOffset field in the User table. The addon probably needs to be modified to take that into account.

    Vanilla developer [GitHub, Twitter]

  • I have the same problem, seems to be ignoring the offset
  • Posts: 2
    Maybe it will be fixed in the next version of Vanilla?
  • Posts: 1
    Still needs fixing.
  • Posts: 4

    No updates?

  • Posts: 4

    In class.lastedited.plugin.php line 65

    replace this

    'Date'      => Gdn_Format::ToDateTime(Gdn_Format::ToTimestamp($Data->DateUpdated)),
    

    with this

    'Date'      => Gdn_Format::ToDateTime(Gdn_Format::ToTimestamp($Data->DateUpdated) + GetValue('HourOffset', $UserData, T('Unknown User')) * 3600),
    

    Not sure if that's the most proper fix but it seems to work okay. CMIIW.

Sign In or Register to comment.