Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(conversations): use built-in TZLabel for SLA display tooltip (#74588)

Luke Beltonc244b1045767
diff --git a/products/conversations/frontend/components/SlaDisplay.tsx b/products/conversations/frontend/components/SlaDisplay.tsx
index 176557794c97..648685bf9880 100644
--- a/products/conversations/frontend/components/SlaDisplay.tsx
+++ b/products/conversations/frontend/components/SlaDisplay.tsx
@@ -1,5 +1,6 @@
import clsx from 'clsx'
+import { TZLabel } from 'lib/components/TZLabel'
import { dayjs } from 'lib/dayjs'
export function SlaDisplay({
@@ -19,7 +20,8 @@ export function SlaDisplay({
const atRisk = !breached && diffMs < 60 * 60 * 1000
return (
- <span
+ <TZLabel
+ time={due}
className={clsx(
'font-medium',
{
@@ -29,9 +31,6 @@ export function SlaDisplay({
},
className
)}
- title={due.format('YYYY-MM-DD HH:mm:ss')}
- >
- {due.fromNow()}
- </span>
+ />
)
}