• janew

    (@janew)


    I am subscribed to receive notifications of file add/delete/modify, but every time something comes in, it shows the time in UTC. I have WordPress set to my own time zone (Pacific), so why can’t your plugin take the time from there? I don’t know what UTC is and by the time I look it up and try to figure out if it was me or someone else who changed/added/deleted the file … well, why not just put my own local time zone?
    Thanks!

    EDIT: I would also point out that when I receive an email about a site lockout, it shows my local time, so again, it seems like it should be a simple tweak for the add/delete/modify email.

    https://wordpress.org/plugins/better-wp-security/

Viewing 1 replies (of 1 total)
  • dwinden

    (@dwinden)

    Correct me if I’m wrong but the default timezone in WP is always UTC even when you have set your local timezone in Settings.

    So any plugin must use local timezone aware date\time functions like date_i18n().
    However the iTSec plugin seems to make use of the php date() function to format date(s)\time(s).

    It seems the date(s)\time(s) used in the File Change Detection email are actually correct. Only the timezone (UTC) is incorrect.
    Could you confirm this ? (Simply check the date/time as included in the subject of the email).

    If formatting would similarly be applied to the expiration date/time in the lockout email it would also show UTC … but there is no date/time formatting done at all on this date\time …

    In short, the iTSec plugin needs to format date(s)\time(s) using the WP date_i18n() function instead of the php date() function.

    dwinden

Viewing 1 replies (of 1 total)

The topic ‘Why UTC time zone?’ is closed to new replies.