MCPcopy Create free account
hub / github.com/Jenifer2833/fullstack-chat-app / formatMessageTime

Function formatMessageTime

frontend/src/lib/utils.js:1–8  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

1export function formatMessageTime(date){
2 return new Date(date).toLocaleTimeString("en-US",{
3 hour:"2-digit",
4 minute:"2-digit",
5 hour12:false,
6 });
7
8}

Callers 1

ChatContainerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected