The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: add tz in tooltip FE-1849 (#39596)
Jordi Enricc55266b425d4
diff --git a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx b/apps/studio/components/ui/Charts/ComposedChart.utils.tsxindex b5c8134bf45..25cd293a1ed 100644--- a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx+++ b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx@@ -173,6 +173,8 @@ const CustomTooltip = ({...(maxValueAttribute?.attribute ? [maxValueAttribute.attribute] : []),]+ const localTimeZone = dayjs.tz.guess()+const total = showTotal && calculateTotalChartAggregate(payload, attributesToIgnoreFromTotal)const getIcon = (color: string, isMax: boolean) =>@@ -212,6 +214,7 @@ const CustomTooltip = ({!isActiveHoveredChart && 'opacity-0')}>+ <p className="text-foreground-light text-xs">{localTimeZone}</p><p className="font-medium">{dayjs(timestamp).format(DateTimeFormats.FULL_SECONDS)}</p><div className="grid gap-0">{payload.reverse().map((entry: any, index: number) => (