Datetime format in tribe_get_end_date not working in event singular page
-
Hello, I’m customizing the event singular page by creating a theme as description
mytheme/tribe-events/modules/meta/details.phpI want to customize the event start & end date time by the format : d F, Y – g:i A (For example : 30 January, 2019 – 5:00 PM) but looks like only the tribe_get_start_time is firing.
My customized code
<span class="tribe-events-span tribe-events-start-date published dtstart" title="<?php esc_attr_e($start_ts) ?>"> <?php echo tribe_get_start_time ( $event_id, 'd F, Y - g:i A'); ?> </span> <div class="tribe-events-span tribe-events-start-time published dtend" title="<?php esc_attr_e($end_ts) ?>"> <?php echo tribe_get_end_date( $event_id, 'd F, Y - g:i A') ?> </div>
Current result :
29 January, 2019 – 9:30 AM (Start datetime)
30 January -5:00 PM (End datetime)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Datetime format in tribe_get_end_date not working in event singular page’ is closed to new replies.