bristol date issue

This commit is contained in:
magepeopleteam 2020-09-23 10:57:02 +00:00
parent a06cbf2ab4
commit 73118a49d2
1 changed files with 8 additions and 7 deletions

View File

@ -9,13 +9,14 @@ if (!function_exists('mep_ev_datetime')) {
function mep_ev_datetime()
{
global $event_meta;
$start_datetime = $event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0];
$start_date = $event_meta['event_start_date'][0];
$start_time = $event_meta['event_start_time'][0];
$end_datetime = $event_meta['event_end_date'][0] . ' ' . $event_meta['event_end_time'][0];
$end_date = $event_meta['event_end_date'][0];
$end_time = $event_meta['event_end_time'][0];
$more_date = array_key_exists('mep_event_more_date', $event_meta) ? unserialize($event_meta['mep_event_more_date'][0]) : array();
// $start_datetime = $event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0];
$start_datetime = get_post_meta(get_the_id(),'event_start_datetime',true);
$start_date = get_post_meta(get_the_id(),'event_start_date',true); //$event_meta['event_start_date'][0];
$start_time = get_post_meta(get_the_id(),'event_start_time',true); //$event_meta['event_start_time'][0];
$end_datetime = get_post_meta(get_the_id(),'event_expire_datetime',true); //$event_meta['event_end_date'][0] . ' ' . $event_meta['event_end_time'][0];
$end_date = get_post_meta(get_the_id(),'event_end_date',true); //$event_meta['event_end_date'][0];
$end_time = get_post_meta(get_the_id(),'event_end_time',true); //$event_meta['event_end_time'][0];
$more_date = get_post_meta(get_the_id(),'mep_event_more_date',true) ? maybe_unserialize(get_post_meta(get_the_id(),'mep_event_more_date',true)) : []; //array_key_exists('mep_event_more_date', $event_meta) ? unserialize($event_meta['mep_event_more_date'][0]) : array();
$recurring = get_post_meta(get_the_id(), 'mep_enable_recurring', true) ? get_post_meta(get_the_id(), 'mep_enable_recurring', true) : 'no';
$mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) ? get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) : 'no';
$cn = 1;