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

@@ -15,7 +15,7 @@ import type { HallDrawLiveSnapshot } from "@/features/hall/use-hall-draw-live";
import { formatSecondsClock } from "@/lib/format-gmt";
import { LOTTERY_SCHEDULE_TIMEZONE } from "@/lib/lottery-schedule-timezone";
import {
formatLotteryInstant,
formatPlayerInstant,
formatLotteryScheduleClock,
getBrowserTimeZoneLabel,
} from "@/lib/player-datetime";
@@ -34,7 +34,7 @@ function ScheduleAnchorTime({ payload }: { payload: DrawCurrentPayload }) {
: isOpen
? "draw.scheduledEnd"
: "draw.scheduledClose";
const formatted = source ? formatLotteryInstant(source) : null;
const formatted = source ? formatPlayerInstant(source) : null;
if (!formatted) {
return (
<>