Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Eddie Nu?ez

    (@syswperu)

    but your parameter $timestamp is defined in WP timezone () with time_offset

    in main.php

    public function parse_crons() {

    foreach (_get_cron_array() as $timestamp => $crons) {

    foreach ($crons as $cron_name => $cron_args) {

    foreach ($cron_args as $cron) {

    $this->crons[$timestamp + $this->time_offset][] = array(
    ‘hook’ => $cron_name,
    ‘cron’ => $cron,
    ‘hash’ => acm_get_cron_hash($cron_name, $timestamp, $cron[‘args’], (!isset($cron[‘interval’])) ? 0 : $cron[‘interval’])
    );

    }

    }

    }

    ksort($this->crons);

    }

    ———
    then, Why not to use “time()” insted of “current_time(‘timestamp’)”? into:

    return __(‘In’, ‘acm’).’ ‘.human_time_diff( current_time(‘timestamp’), $timestamp ).’
    ‘.date(“d.m.Y H:i:s”, $timestamp);

Viewing 1 replies (of 1 total)