Support » Plugin: Post Expiration Date » Potential date time issue and solution

  • Resolved mvbaxter


    I have encountered several examples where posts are expiring several hours prior to the time set. The times were confirmed correct in the post_meta table.

    I came to the conclusion it was likely a server time vs client time issue. I added the code below to hugu_ped_wpdb_query. This seems to have resolved the issue.

    $tz_string = get_option('timezone_string');

    I am requesting you incorporate this in your next revision.

Viewing 1 replies (of 1 total)
  • Plugin Author Huguette Inc


    Thank you for the idea and the input. The plugin does indeed use server time, which would cause issues if your server and WP installation are not in sync.

    Your fix would work but it would affect all time-dependent functions. This might not matter to you or me, but could have unintended consequences for other plugins.

    I have explored using get_option(‘gmt_offset’) unfortunately WP time, user time, and server time are often not in sync, so I haven’t made any changes.

Viewing 1 replies (of 1 total)
  • The topic ‘Potential date time issue and solution’ is closed to new replies.