File tree Expand file tree Collapse file tree
screens/auction/auction-detail/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export default function AuctionDetailScreen({
4343 />
4444 ) ;
4545 }
46+ console . log ( data . recentPriceHistory ) ;
4647 return (
4748 < ScrollArea className = "h-[calc(100vh-var(--header-h))] lg:h-[calc(100vh-var(--header-h))]" >
4849 < AuctionViewerProvider initCount = { data . viewerCount } >
Original file line number Diff line number Diff line change 11import { dayjs } from "@/shared/lib/utils/dayjs" ;
22
3+ export function parseKstLocalDateTime ( input : string ) {
4+ const normalized = input . replace ( / ( \. \d { 3 } ) \d + $ / , "$1" ) ;
5+ return dayjs . tz ( normalized , "Asia/Seoul" ) ;
6+ }
7+
38export function formatAgo ( input : string | Date | number ) : string {
49 const now = dayjs ( ) ;
5- const t = dayjs ( input ) ;
10+
11+ const t = typeof input === "string" ? parseKstLocalDateTime ( input ) : dayjs ( input ) ;
612
713 if ( ! t . isValid ( ) ) return "" ;
814
You can’t perform that action at this time.
0 commit comments