Problem with AM/PM
-
This function return me AM/PM hours, but i need to show 24H. How?
function abs_get_times( $interval = '+30 minutes' ) { $output = array(); $current = strtotime( '00:00' ); $end = strtotime( '23:59' ); $time_format = get_option( 'time_format' ); while ( $current <= $end ) { $time = date_i18n( 'H:i', $current ); $output[ $time ] = date_i18n( $time_format, $current ); $current = strtotime( $interval, $current ); } return $output; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with AM/PM’ is closed to new replies.