mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-17 14:52:56 +00:00
2.3.2
This commit is contained in:

committed by
Remco Tolsma

parent
5fb62b0e6a
commit
1039aec2d9
@@ -240,10 +240,10 @@ class CronExpression
|
||||
$currentTime = new DateTime($currentTime);
|
||||
$currentTime->setTime($currentTime->format('H'), $currentTime->format('i'), 0);
|
||||
$currentDate = $currentTime->format('Y-m-d H:i');
|
||||
$currentTime = (int)($currentTime->format('U'));
|
||||
$currentTime = (int)($currentTime->getTimestamp());
|
||||
}
|
||||
|
||||
return $this->getNextRunDate($currentDate, 0, true)->format('U') == $currentTime;
|
||||
return $this->getNextRunDate($currentDate, 0, true)->getTimestamp() == $currentTime;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user