• Hi, thank you for this plugin, must have while debugging the WP scheduler. Probably there is bug in the function you use to display the next execution time.

    On functions.php where there is the code

    if ($timestamp – time() <= 0)
    return __(‘At next page refresh’, ‘acm’);

    $timestamp is your corrected (addmin the timezone offset) timestamp build when the cron list is created in your plugin. For example I live in Italy, now we are UTC+2. Hence scheduled tasks which are late and should execute on next page load are still shown with a future next execution while they should show the notice “At next page refresh”.

    Even worse the huma_time_diff WP function does an abs() of the time difference not showing a negative interval.

    You should use in the check the current_time(‘timestamp’) or just adjust it considering the time offset.

    Thank you for your attention, Stefano Lissa.

  • The topic ‘Bug on next run time display’ is closed to new replies.