refactor: 统一玩家端时间格式化方法并移除冗余本地时间工具

This commit is contained in:
2026-06-09 15:06:48 +08:00
parent 2ddba8462e
commit 4707101da4
10 changed files with 28 additions and 48 deletions

View File

@@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next";
import { Button } from "@/components/ui/button";
import { Skeleton } from "@/components/ui/skeleton";
import { formatLocalDateTime } from "@/lib/format-local-datetime";
import { formatPlayerInstant } from "@/lib/player-datetime";
import { formatMinorAsCurrency } from "@/lib/money";
import type { WalletLogItem, WalletLogsData } from "@/types/api/wallet-logs";
@@ -225,7 +225,7 @@ export function LogRow({
</p>
</div>
<p className="mt-1.5 text-xs font-medium text-slate-500">
{formatLocalDateTime(item.created_at)}
{formatPlayerInstant(item.created_at)}
</p>
{item.ref_id ? (
<p className="mt-1 truncate font-mono text-[11px] text-slate-400">