• Resolved Harley Leung

    (@suongliang)


    Hello, I’m customizing the event singular page by creating a theme as description
    mytheme/tribe-events/modules/meta/details.php

    I 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)

    • This topic was modified 5 years, 10 months ago by Harley Leung.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there,

    Thanks for reaching out ??

    Is the end time showing without your template modification?

    Have you tried changing the date format under WP > Settings?

    Take care,
    Ed ??

    Hey there,

    Since this topic has been inactive for a while, I’m going to go ahead and mark as resolved. Don’t hesitate to reopen or create a new topic if you still need help! ??

    Take care,
    Ed ??

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.