Explorar o código

Add race time to table

Foppe Hemminga %!s(int64=6) %!d(string=hai) anos
pai
achega
8d77c2bb65
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -93,7 +93,7 @@ TABLEFOOT;
         <td><?php echo htmlspecialchars($row['race_date']); ?></td>
         <td><?php echo htmlspecialchars($row['race']); ?></td>
         <td><?php echo htmlspecialchars($row['start_time']); ?></td>
-        <td><?php $t = strtotime($row['utctime']); echo $t; ?></td>
+        <td><?php $t = strtotime($row['utctime']); echo gmdate('H:i', $t); ?></td>
         <td><?php echo htmlspecialchars($row['horse']); ?></td>
     </tr>
 	<?php endwhile; ?>