Skip to content

Commit

Permalink
fixed the date() issue in event details page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat1192 committed Dec 12, 2024
1 parent d687496 commit d024057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/wpea-event-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="titlemain" > <?php esc_html_e( 'Details','wp-event-aggregator' ); ?> </div>

<?php
if( date( 'Y-m-d', $start_date_str ) == date( 'Y-m-d', $end_date_str ) ){
if( date( 'Y-m-d', strtotime( $start_date_str ) ) == date( 'Y-m-d', strtotime( $end_date_str ) ) ){
?>
<strong><?php esc_html_e( 'Date','wp-event-aggregator' ); ?>:</strong>
<p><?php echo $start_date_formated; ?></p>
Expand Down

0 comments on commit d024057

Please sign in to comment.