fix date
This commit is contained in:
@@ -684,6 +684,22 @@
|
|||||||
>
|
>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
|
{:else if col.key === "updated_at"}
|
||||||
|
<td class="px-4 py-2">
|
||||||
|
{new Date(
|
||||||
|
row[
|
||||||
|
col.key as keyof PurchaseOrderDisplay
|
||||||
|
] as string,
|
||||||
|
).toLocaleString("en-US")}
|
||||||
|
</td>
|
||||||
|
{:else if col.key === "created_at"}
|
||||||
|
<td class="px-4 py-2">
|
||||||
|
{new Date(
|
||||||
|
row[
|
||||||
|
col.key as keyof PurchaseOrderDisplay
|
||||||
|
] as string,
|
||||||
|
).toLocaleString("en-US")}
|
||||||
|
</td>
|
||||||
{:else if col.key === "actions"}
|
{:else if col.key === "actions"}
|
||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -823,7 +823,18 @@
|
|||||||
on:submit|preventDefault={submitForm}
|
on:submit|preventDefault={submitForm}
|
||||||
class="w-full max-w-lg bg-white p-6 rounded-2xl shadow-xl space-y-4"
|
class="w-full max-w-lg bg-white p-6 rounded-2xl shadow-xl space-y-4"
|
||||||
>
|
>
|
||||||
<h2 class="text-2xl font-bold text-center mb-6">Timesheet Entry</h2>
|
<div class="flex justify-between items-center mb-4">
|
||||||
|
<h2 class="text-xl font-semibold">
|
||||||
|
{isEditing ? "Edit Timesheet" : "New Timesheet Entry"}
|
||||||
|
</h2>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="text-gray-500 hover:text-gray-700"
|
||||||
|
on:click={() => (showModal = false)}
|
||||||
|
>
|
||||||
|
✖️
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="t_eb" class="block text-sm font-medium mb-1"
|
<label for="t_eb" class="block text-sm font-medium mb-1"
|
||||||
|
|||||||
Reference in New Issue
Block a user