date format change in shift reports

main
Zynh0722 2023-11-05 10:17:30 -08:00
parent cb6e9d1889
commit 0a8eb848ef
1 changed files with 5 additions and 3 deletions

View File

@ -28,17 +28,19 @@
<tr class="odd:bg-neutral-200"> <tr class="odd:bg-neutral-200">
<td class="text-center">@shift.id</td> <td class="text-center">@shift.id</td>
<td class="text-center">@shift.start.format("%Y-%m-%d %H:%M:%S")</td> <td class="text-center">@shift.start.format("%A, %b %m - %H:%M")</td>
<td class="text-center"> <td class="text-center">
@if let Some(end) = shift.end { @if let Some(end) = shift.end {
@end.format("%Y-%m-%d %H:%M:%S") @end.format("%A, %b %m - %H:%M")
} else { } else {
Currently Open Currently Open
} }
</td> </td>
<td hx-boost="true" class="flex justify-end"> <td hx-boost="true" class="flex justify-end">
<a href="/shifts/@shift.id/report"> <a href="/shifts/@shift.id/report">
<button type="button" class=" text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5">View Shift</button> <button type="button" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5">
View Shift
</button>
</a> </a>
</td> </td>
</tr> </tr>