ActionScheduler_DBStore::get_date
Get the schedule date for an action.
Method of the class: ActionScheduler_DBStore{}
No Hooks.
Returns
\DateTime. The local date the action is scheduled to run, or the date that it ran.
Usage
$ActionScheduler_DBStore = new ActionScheduler_DBStore(); $ActionScheduler_DBStore->get_date( $action_id );
- $action_id(string) (required)
- Action ID.
ActionScheduler_DBStore::get_date() ActionScheduler DBStore::get date code WC 10.3.3
public function get_date( $action_id ) {
$date = $this->get_date_gmt( $action_id );
ActionScheduler_TimezoneHelper::set_local_timezone( $date );
return $date;
}