• Resolved bthorval

    (@bthorval)


    Thanks for an excellent plugin! This might not be an error at all, but: In the activity log, the time given for an event is in my case exactly two hours off. It gives UTC. However, this does not seem to affect the timing when blocking IPs or users. This might, however, confuse the admins of the blogs. Is the use of UTC intended, and is there a way to “synchronize”, so that local time is given in the activity logs?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would definitely like synchronization with the selected time zone in WP as well. And agreed, great plugin!

    I ran into this problem too and found that replacing date_i18n with wp_date fixes the timezone offset issue.

    From the docs:

    This is a newer function, intended to replace date_i18n() without legacy quirks in it.

    I found the code in:
    guardgiant/includes/class-guardgiant-trusted-device.php
    and
    guardgiant/includes/class-guardgiant-table-login-activity-log.php

    Just do a search for date_i18n and replace it with wp_date.

    I hope the authors include this in a future version but for now, editing the plugin files works.

    Thank you for letting us know about this issue, it’s resolved in version 2.2.4.

    Kind regards,
    Alice @ GuardGiant team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Time setting off?’ is closed to new replies.