WordPress at Your Fingertips
function is not described

ActionScheduler_Store::get_scheduled_date_string_local() protected WC 1.0

Get the time MySQL formated date/time string for an action's (next) scheduled date.

{} It's a method of the class: ActionScheduler_Store{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_scheduled_date_string_local( $action, $scheduled_date );
$action(ActionScheduler_Action) (required)
-
$scheduled_date(DateTime)
(optional)
Default: NULL

Code of ActionScheduler_Store::get_scheduled_date_string_local() WC 6.1.1

protected function get_scheduled_date_string_local( ActionScheduler_Action $action, DateTime $scheduled_date = NULL ) {
	$next = null === $scheduled_date ? $action->get_schedule()->get_date() : $scheduled_date;
	if ( ! $next ) {
		return '0000-00-00 00:00:00';
	}

	ActionScheduler_TimezoneHelper::set_local_timezone( $next );
	return $next->format( 'Y-m-d H:i:s' );
}