Skip to content

Commit

Permalink
Merge pull request #175 from xylusthemes/fixed_event_details_page_dat…
Browse files Browse the repository at this point in the history
…e_issue

fixed the date() issue in event details page
  • Loading branch information
support-xylusthemes authored Jan 9, 2025
2 parents a92d5f2 + 2c69c15 commit 6284e62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion languages/wp-event-aggregator.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2025-01-09T07:01:11+00:00\n"
"POT-Creation-Date: 2025-01-09T07:03:50+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: wp-event-aggregator\n"
Expand Down
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 6284e62

Please sign in to comment.