MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / toDateString

Function toDateString

components/transcripts/transcriptSearchSidebar.tsx:331–347  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

329}
330
331function toDateString(date: Date): string {
332 return `${date
333 .toTimeString()
334 .split(":")
335 .slice(0, 2)
336 .join(":")}, ${date.toLocaleString(
337 // Below if-else hacks around the fact that this is called server-side, somehow
338 // !process.env.NODE_ENV ? navigator?.language : "es-CL",
339 navigator.language,
340 {
341 day: "numeric",
342 month: "short",
343 // TODO: Uncomment when 2025
344 // year: "2-digit",
345 },
346 )}`;
347}
348
349function FeedbackTags(props: {
350 feedback: ConversationSidebarItem["feedback"];

Callers 1

TranscriptSearchSidebarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected