Use currentTimme from WP

[MAILPOET-4367]
This commit is contained in:
Jan Lysý
2022-08-11 13:53:02 +02:00
committed by Aschepikov
parent 71635f9520
commit abfab0b0ea

View File

@@ -257,7 +257,7 @@ class ScheduledTasksRepository extends Repository {
$queryBuilder->andWhere('st.scheduledAt <= :now');
}
$now = Carbon::createFromTimestamp(WPFunctions::get()->currentTime('timestamp'));
$now = Carbon::createFromTimestamp($this->wp->currentTime('timestamp'));
$queryBuilder->setParameter('now', $now);
if ($limit) {