feat:根据浏览器日期格式化

This commit is contained in:
2026-05-09 15:32:58 +08:00
parent 7743c14e83
commit 3ae2c0e7d1
2 changed files with 28 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import {
CardTitle,
} from "@/components/ui/card";
import { Skeleton } from "@/components/ui/skeleton";
import { formatLocalDateTime } from "@/lib/format-local-datetime";
import { formatMinorAsCurrency } from "@/lib/money";
import type { WalletLogItem, WalletLogsData } from "@/types/api/wallet-logs";
@@ -153,7 +154,7 @@ export function LogRow({
</span>
</span>
<p className="mt-1 text-xs text-muted-foreground">
{item.created_at?.replace("T", " ").slice(0, 19) ?? "—"}{" "}
{formatLocalDateTime(item.created_at)}{" "}
<span className="text-foreground/80">
· {txnStatusLabel(item.status)}
</span>