Issue with time format after update to the new version
-
Hello,
Since I upgraded the plugin I can see that if somebody is selecting a start time and and end time for the event this is not showned correctly under “Where and When” section in the event itself.
Basically if following function is used, the get_event_start_time() does not display anymore the time selected in the drop down list but the position in the dropdown of the selected value. Lets’ say that time selected is 9:30, it means that get_event_start_time() does not display anymore 9:30 but 19 which is the position of 9:30 within the drop down with selectable values for time.
By using the below I get as output something like: 12.09.2018, 19 instead of 12.09.2019, 9:30
<?php $timestamp = strtotime(get_event_start_date()); if($timestamp!=null):echo date(“d/m/y”,$timestamp).’,’.get_event_start_time(); endif;?>
I even tried below function:
<?php echo date (“H:i”, strtotime(get_event_start_time())); ?>
but I always get 00:00.
Can you have a look and check why this is happening and how to fix this issue?
Thanks.
- The topic ‘Issue with time format after update to the new version’ is closed to new replies.