feat: change locale to th-TH (sort date-month-year)

This commit is contained in:
Methapon Metanipat 2024-11-07 12:45:28 +07:00
parent 82fc9dd908
commit 87194ca606

View file

@ -562,7 +562,7 @@ async function storeDataLocal(id: string) {
:code="v.code"
:title="v.workName"
:created-at="
new Date(v.createdAt).toLocaleString('en-US', {
new Date(v.createdAt).toLocaleString('th-TH', {
hour12: false,
})
"
@ -570,7 +570,7 @@ async function storeDataLocal(id: string) {
(() => {
const date = new Date(v.dueDate);
date.setHours(23, 59, 59, 0);
return date.toLocaleString('en-US', { hour12: false });
return date.toLocaleString('th-TH', { hour12: false });
})()
"
:status="$t(`quotation.status.${v.quotationStatus}`)"