From d5e733ff854ba2050ebb72f2ab468fd18dd09dbf Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Mon, 13 Jan 2020 06:28:38 +0000 Subject: [PATCH] date issue fixed --- readme.txt | 8 +++++++- templates/template-prts/event_date.php | 8 ++++---- woocommerce-event-press.php | 26 ++++++++++++++------------ 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/readme.txt b/readme.txt index f4c4597..80ca99b 100644 --- a/readme.txt +++ b/readme.txt @@ -454,4 +454,10 @@ A. you can create support ticket here with problem details with possible screens ==> Code Improved ==> Date Issue Fixed in Some template and organizer page & PDF Ticket ==> Email HTML support issue fixed -02 Jan 2020* \ No newline at end of file +02 Jan 2020* + + +*= 3.0.4 = +* Update Release: +==> Date Issue Fixed +13 Jan 2020* \ No newline at end of file diff --git a/templates/template-prts/event_date.php b/templates/template-prts/event_date.php index 8033392..f212504 100644 --- a/templates/template-prts/event_date.php +++ b/templates/template-prts/event_date.php @@ -137,7 +137,7 @@ if($recurring == 'yes'){ }else{ ?> -
  • -
  • +
  • -
  • -

    +

    -

    +

    -

    +

    strtotime($newformat)){ + if(current_time('Y-m-d H:i:s') > $newformat){ return "Expired"; } else{ @@ -2129,12 +2131,12 @@ $wpdatesettings = $date_format.' '.$time_format; if($user_set_format == 12){ return date_i18n( 'd,D M Y', strtotime( $date ) ); }elseif($user_set_format == 'wtss'){ - return date_i18n( $date_format, strtotime( $date ) ); + return date_i18n( $date_format, strtotime( $date ) ); }else{ return date_i18n( 'd, D M Y', strtotime( $date ) ); } - //return date_i18n( 'd, D M Y', strtotime( $date ) ); } + if($type == 'date-time-text'){ if($user_set_format == 12){ return date_i18n( 'd, D M Y h:i A', strtotime( $date ) ); @@ -2148,7 +2150,7 @@ $wpdatesettings = $date_format.' '.$time_format; if($user_set_format == 12){ return date( 'h:i A', strtotime( $date ) ); }elseif($user_set_format == 'wtss'){ - return date_i18n( $time_format, strtotime( $date ) ); + return date( $time_format, strtotime( $date ) ); }else{ return date( 'H:i', strtotime( $date ) ); } @@ -2159,7 +2161,7 @@ $wpdatesettings = $date_format.' '.$time_format; -function on_post_publish( $post_id, $post, $update ) { +function mep_on_post_publish( $post_id, $post, $update ) { if ($post->post_type == 'mep_events' && $post->post_status == 'publish' && empty(get_post_meta( $post_id, 'check_if_run_once' ))) { // print_r($post); @@ -2187,7 +2189,7 @@ function on_post_publish( $post_id, $post, $update ) { //die(); } } -add_action( 'wp_insert_post', 'on_post_publish', 10, 3 ); +add_action( 'wp_insert_post', 'mep_on_post_publish', 10, 3 ); function mep_count_hidden_wc_product($event_id){ $args = array(