Skip to content

Commit b5d9f55

Browse files
committed
feat: Formats message timestamps for readability
Updates the timestamp format in chat messages to display hours and minutes in a more user-friendly manner. This improves the readability and clarity of the message timestamps, making it easier for users to quickly understand when a message was sent.
1 parent 34f3709 commit b5d9f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/server/webui/src/lib/components/chat/ChatMessages/ChatMessage.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,6 @@
232232
? 'right-0'
233233
: 'left-0'} text-muted-foreground absolute text-xs transition-all duration-150 group-hover:pointer-events-none group-hover:opacity-0"
234234
>
235-
{message.timestamp ? new Date(message.timestamp).toLocaleTimeString() : ''}
235+
{message.timestamp ? new Date(message.timestamp).toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit' }) : ''}
236236
</div>
237237
{/snippet}

0 commit comments

Comments
 (0)