Admin_UI::last_import_date()

Summary

No summary available.

Return

(string) The date of the last import. Empty if not available.


Source

File: src/BigCommerce/Post_Types/Product/Admin_UI.php

	public function last_import_date() {
		$status    = new Status();
		$previous  = $status->previous_status();
		$timestamp = strtotime( get_date_from_gmt( date( 'Y-m-d H:i:s', (int) $previous[ 'timestamp' ] ) ) );
		$date      = date_i18n( get_option( 'date_format', 'Y-m-d' ), $timestamp, false );
		switch ( $previous[ 'status' ] ) {
			case Status::COMPLETED:
			case Status::FAILED:
				return $date;
			case Status::NOT_STARTED:
			default:
				return '';
		}
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.