This commit is contained in:
Timothy Jaeryang Baek committed 2025-11-27 08:04:41 -05:00
1 parent 6752772c1d
commit 560702a8f7
1 file changed
+9 -5
@@ -252,14 +252,18 @@
{#if message.created_at} {#if message.created_at}
<div <div
class=" self-center text-xs invisible group-hover:visible text-gray-400 font-medium first-letter:capitalize ml-0.5 translate-y-[1px]" class=" self-center text-xs text-gray-400 font-medium first-letter:capitalize ml-0.5 translate-y-[1px]"
> >
<Tooltip content={dayjs(message.created_at / 1000000).format('LLLL')}> <Tooltip content={dayjs(message.created_at / 1000000).format('LLLL')}>
<span class="line-clamp-1"> <span class="line-clamp-1">
{$i18n.t(formatDate(message.created_at / 1000000), { {#if dayjs(message.created_at / 1000000).isToday()}
LOCALIZED_TIME: dayjs(message.created_at / 1000000).format('LT'), {dayjs(message.created_at / 1000000).format('LT')}
LOCALIZED_DATE: dayjs(message.created_at / 1000000).format('L') {:else}
})} {$i18n.t(formatDate(message.created_at / 1000000), {
LOCALIZED_TIME: dayjs(message.created_at / 1000000).format('LT'),
LOCALIZED_DATE: dayjs(message.created_at / 1000000).format('L')
})}
{/if}
</span> </span>
</Tooltip> </Tooltip>
</div> </div>