Conversation
supportI follow the correction of the date and time format which has been corrected in this support request: https://wordpress.org/support/topic/time-bug-for-campains/ Now the dates are well taken into account on the other hand the format of date of campain is good in detail of the campaign but not on the campain listing page. in “wppolitic_event-meta” the time is always displayed in AM / PM even though the date format chosen is G\hi which should give the result XXhXX and not XX:XX AM or PM Campain detail OK : https://zupimages.net/up/22/15/wyxe.png Campains list NOT OK : https://zupimages.net/up/22/15/f0ru.png Thanks in advance !
you must do the same thing as for the campaign details, namely : $timeformate = get_option(‘time_format’); $campaign_time = strtotime( $campaign_time ); <?php echo esc_html( date_i18n( $timeformate, $campaign_time ) ); ?> instead of <?php echo esc_html( $campaign_time );?> Line 1449, file wppolitic_campain_addon.php Cheers This reply was modified 4 years, 1 month ago by JibsouX . This reply was modified 4 years, 1 month ago by JibsouX .
Hello @jibsoux Thank you so much for finding the issue and providing the solution. Hopefully, we will add it to our plugin in the next update. We are so thankful to you! Best Regards, HT Plugins
you must do the same thing as for the campaign details, namely : $timeformate = get_option(‘time_format’); $campaign_time = strtotime( $campaign_time ); <?php echo esc_html( date_i18n( $timeformate, $campaign_time ) ); ?> instead of <?php echo esc_html( $campaign_time );?> Line 1449, file wppolitic_campain_addon.php Cheers This reply was modified 4 years, 1 month ago by JibsouX . This reply was modified 4 years, 1 month ago by JibsouX .
Hello @jibsoux Thank you so much for finding the issue and providing the solution. Hopefully, we will add it to our plugin in the next update. We are so thankful to you! Best Regards, HT Plugins