시간쪽 관련된거

This commit is contained in:
leeheejin
2025-12-15 13:46:42 +09:00
parent f31fca0115
commit 93b37e99e6
3 changed files with 34 additions and 14 deletions

View File

@@ -148,9 +148,19 @@ export function ListWidget({ element, onConfigUpdate }: ListWidgetProps) {
switch (format) {
case "date":
return new Date(value).toLocaleDateString("ko-KR");
try {
const dateVal = new Date(value);
return dateVal.toLocaleDateString("ko-KR", { timeZone: "Asia/Seoul" });
} catch {
return String(value);
}
case "datetime":
return new Date(value).toLocaleString("ko-KR");
try {
const dateVal = new Date(value);
return dateVal.toLocaleString("ko-KR", { timeZone: "Asia/Seoul" });
} catch {
return String(value);
}
case "number":
return Number(value).toLocaleString("ko-KR");
case "currency":