feat: adjust display date format

This commit is contained in:
Methapon Metanipat 2024-11-07 11:54:40 +07:00
parent 3c743913db
commit 82fc9dd908

View file

@ -561,8 +561,18 @@ async function storeDataLocal(id: string) {
:urgent="v.urgent"
:code="v.code"
:title="v.workName"
:created-at="new Date(v.createdAt).toLocaleString()"
:valid-until="new Date(v.dueDate).toLocaleString()"
:created-at="
new Date(v.createdAt).toLocaleString('en-US', {
hour12: false,
})
"
:valid-until="
(() => {
const date = new Date(v.dueDate);
date.setHours(23, 59, 59, 0);
return date.toLocaleString('en-US', { hour12: false });
})()
"
:status="$t(`quotation.status.${v.quotationStatus}`)"
:worker-count="v._count.worker"
:worker-max="v.workerMax || v._count.worker"