public static function mb_event_run_date_range($post, $mb) { // adjust the start and end times for our WP offset setting $start_raw = QSOT_Utils::gmt_timestamp(get_post_meta($post->ID, '_start', true)); $end_raw = QSOT_Utils::gmt_timestamp(get_post_meta($post->ID, '_end', true)); // create the various date parts $start = date('c', $start_raw); $start_time = date('H:i:s', $start_raw); $end = date('c', $end_raw); $end_time = date('H:i:s', $end_raw); ?> <div class="qsot-mb"> <div class="field"> <label><?php _e('Start Date/Time', 'opentickets-community-edition'); ?> :</label> <table cellspacing="0"> <tbody> <tr> <td width="60%"> <input type="text" class="use-i18n-datepicker widefat" name="_qsot_start_date" value="" data-init-date="<?php echo esc_attr($start); ?> " scope="td" data-display-format="<?php echo esc_attr(__('mm-dd-yy', 'opentickets-community-edition')); ?> " /> </td> <td width="1%"><?php _e('@', 'opentickets-community-edition'); ?> </td> <td width="39%"> <input type="text" class="widefat use-timepicker" name="_qsot_start_time" value="<?php echo esc_attr($start_time); ?> " /> </td> </tr> </tbody> </table> </div> <div class="field"> <label><?php _e('End Date/Time:', 'opentickets-community-edition'); ?> </label> <table cellspacing="0"> <tbody> <tr> <td width="60%"> <input type="text" class="use-i18n-datepicker widefat" name="_qsot_end_date" value="" data-init-date="<?php echo esc_attr($end); ?> " scope="td" data-display-format="<?php echo esc_attr(__('mm-dd-yy', 'opentickets-community-edition')); ?> " /> </td> <td width="1%"><?php _e('@', 'opentickets-community-edition'); ?> </td> <td width="39%"> <input type="text" class="widefat use-timepicker" name="_qsot_end_time" value="<?php echo esc_attr($end_time); ?> " /> </td> </tr> </tbody> </table> </div> </div> <?php }