Skip to content

Instantly share code, notes, and snippets.

@craigrodway
Created May 27, 2019 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigrodway/eea970736cd06412c194b9be7ccbc0ef to your computer and use it in GitHub Desktop.
Save craigrodway/eea970736cd06412c194b9be7ccbc0ef to your computer and use it in GitHub Desktop.
classroombookings: 24hr time format
<!-- application/views/bookings/table/cols_periods.php -->
<td align="center" width="<?php echo $width ?>">
<strong><?php echo html_escape($name) ?></strong><br />
<span style="font-size:90%">
<?php echo date('H:i', strtotime($time_start)).'-'.date('H:i', strtotime($time_end)) ?>
</span>
</td>
<!-- application/views/bookings/table/headings/periods.php -->
<td align="center" width="<?php echo $width ?>">
<strong><?php echo html_escape($name) ?></strong><br />
<span style="font-size:90%">
<?php echo date('H:i', strtotime($time_start)).'-'.date('H:i', strtotime($time_end)) ?>
</span>
</td>
<!-- application/views/bookings/table/rows_periods.php -->
<td align="right" width="100" style="padding:15px 5px;">
<strong><?php echo html_escape($name) ?></strong><br />
<span style="font-size:90%">
<?php echo date('H:i', strtotime($time_start)).'-'.date('H:i', strtotime($time_end)) ?>
</span>
</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment