refactor: 统一玩家端时间格式化方法并移除冗余本地时间工具
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user