mec_event = new MEC_Event( $wp_object ); } /** * Get the end time from the event object. */ public function get_start_time(): string { return \gmdate( 'Y-m-d\TH:i:s\Z', $this->mec_event->get_datetime()['start']['timestamp'] ); } /** * Get the end time from the event object. */ public function get_end_time(): ?string { return \gmdate( 'Y-m-d\TH:i:s\Z', $this->mec_event->get_datetime()['end']['timestamp'] ); } /** * Get the location. */ public function get_location(): ?Place { return null; } /** * Get the location. */ public function get_timezone(): string { $timezone = get_post_meta( $this->wp_object->ID, 'mec_timezone', true ); if ( 'global' === $timezone ) { return parent::get_timezone(); } return $timezone; } }