Support » Plugin: Post Expirator » [Plugin: Post Expirator] Posts being removed a day early

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php

    $expirationdatets = get_post_meta($post->ID,’expiration-date’,true);
    $timestamp1 = date(“l d F”, $time_delete);
    $timestamp = date(“l d F”, $expirationdatets );
    $timestamp2 = date(“D jS M”, $expirationdatets );
    if($timestamp1!= $timestamp){?>

    This seems to be the offending part.
    Even though on the post I have the expiration date/time set to 23:59 on the 5th of July, it’s removed at 00:01 on the 5th of July. Likewise for all posts.

    Plugin Author Aaron Axelsen

    (@axelseaa)

    This may be a silly question, but have you verified that the time / date on your host system is correct?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Post Expirator] Posts being removed a day early’ is closed to new replies.