task-fixdatetime

This commit is contained in:
phaichayon
2026-06-25 21:09:27 +07:00
parent 3bf3405c48
commit 14acee1127
36 changed files with 4788 additions and 1011 deletions

View File

@@ -6,12 +6,10 @@ export function formatCurrency(value: number) {
}).format(value);
}
import { formatDate as formatGlobalDate } from '@/lib/date-format';
export function formatDate(value: string) {
return new Intl.DateTimeFormat('th-TH', {
day: '2-digit',
month: 'short',
year: 'numeric'
}).format(new Date(value));
return formatGlobalDate(value);
}
export function formatPercent(value: number) {