The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
Add hour and minute to comment timestamps on issue pages
Forgotten40512ad53306
diff --git a/ui/src/components/CommentThread.tsx b/ui/src/components/CommentThread.tsxindex f0adb0ca52..4c5f390088 100644--- a/ui/src/components/CommentThread.tsx+++ b/ui/src/components/CommentThread.tsx@@ -5,7 +5,7 @@ import type { IssueComment, Agent } from "@paperclip/shared";import { Button } from "@/components/ui/button";import { Identity } from "./Identity";import { MarkdownEditor, type MarkdownEditorRef, type MentionOption } from "./MarkdownEditor";-import { formatDate } from "../lib/utils";+import { formatDateTime } from "../lib/utils";interface CommentWithRunMeta extends IssueComment {runId?: string | null;@@ -79,7 +79,7 @@ export function CommentThread({ comments, onAdd, issueStatus, agentMap }: Commensize="sm"/><span className="text-xs text-muted-foreground">- {formatDate(comment.createdAt)}+ {formatDateTime(comment.createdAt)}</span></div><div className="text-sm prose prose-sm prose-invert max-w-none prose-p:my-1 prose-ul:my-1 prose-ol:my-1 prose-li:my-0 prose-pre:my-2 prose-headings:my-2 prose-headings:text-sm">diff --git a/ui/src/lib/utils.ts b/ui/src/lib/utils.tsindex 518133504b..c83ed1d201 100644--- a/ui/src/lib/utils.ts+++ b/ui/src/lib/utils.ts@@ -17,6 +17,16 @@ export function formatDate(date: Date | string): string {});}+export function formatDateTime(date: Date | string): string {+ return new Date(date).toLocaleString("en-US", {+ month: "short",+ day: "numeric",+ year: "numeric",+ hour: "numeric",+ minute: "2-digit",+ });+}+export function relativeTime(date: Date | string): string {const now = Date.now();const then = new Date(date).getTime();