Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat(ui): location-aware DateTime popover rows and scheduling-day fixes
Sidwebworks23af551bae1b
diff --git a/apps/erp/app/components/DateTime.tsx b/apps/erp/app/components/DateTime.tsxindex 289d19f464..ebcad3ea09 100644--- a/apps/erp/app/components/DateTime.tsx+++ b/apps/erp/app/components/DateTime.tsx@@ -1,22 +1,15 @@import type { DateTimeProps } from "@carbon/react";import { DateTime as DateTimeBase } from "@carbon/react";-import { Trans } from "@lingui/react/macro";import { useCompanyTimeZone } from "~/hooks/useCompanyTimeZone";/**- * ERP timestamps default the tooltip's business-timezone row to the company's- * zone (the ledger calendar). Location-scoped screens can pass the location- * timezone via the `timeZone` prop instead.+ * ERP timestamps always know the company zone (the ledger calendar).+ * Location-scoped screens (jobs, scheduling, shifts) additionally pass the+ * row's `locationTimeZone` so the popover shows the operational calendar too.*/const DateTime = (props: DateTimeProps) => {const companyTimeZone = useCompanyTimeZone();- return (- <DateTimeBase- timeZone={companyTimeZone}- timeZoneLabel={<Trans>Company</Trans>}- {...props}- />- );+ return <DateTimeBase companyTimeZone={companyTimeZone} {...props} />;};export { DateTime };diff --git a/apps/erp/app/components/Form/Location.tsx b/apps/erp/app/components/Form/Location.tsxindex 420ef6995e..2e5a16c396 100644--- a/apps/erp/app/components/Form/Location.tsx+++ b/apps/erp/app/components/Form/Location.tsx@@ -98,7 +98,8 @@ export const useLocations = () => {locationFetcher.data?.data? locationFetcher.data?.data.map((c) => ({value: c.id,- label: c.name+ label: c.name,+ timezone: c.timezone})): [],[locationFetcher.data]diff --git a/apps/erp/app/modules/people/ui/Shifts/ShiftsTable.tsx b/apps/erp/app/modules/people/ui/Shifts/ShiftsTable.tsxindex eae584be8c..4266e83f20 100644--- a/apps/erp/app/modules/people/ui/Shifts/ShiftsTable.tsx+++ b/apps/erp/app/modules/people/ui/Shifts/ShiftsTable.tsx@@ -87,8 +87,7 @@ const ShiftsTable = memo(({ data, count, locations }: ShiftsTableProps) => {<DateTimevalue={instant}variant="time"- timeZone={tz}- timeZoneLabel={<Trans>Location</Trans>}+ locationTimeZone={tz}className="cursor-pointer underline decoration-muted-foreground/50 decoration-dotted underline-offset-[3px]">{inline}diff --git a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsxindex 97f25a6bb3..fb7835e387 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx@@ -154,6 +154,19 @@ const JobsTable = memo(({ data, count, tags }: JobsTableProps) => {const [customers] = useCustomers();const locations = useLocations();+ // Scheduling dates belong to the job's location calendar. Empty timezone+ // means the location inherits the company's — omit it and the popover+ // collapses to the company row.+ const locationZoneProps = useCallback(+ (locationId: string | null | undefined) => {+ const timezone = locationId+ ? locations.find((l) => l.value === locationId)?.timezone+ : undefined;+ return timezone ? { locationTimeZone: timezone } : {};+ },+ [locations]+ );+const permissions = usePermissions();const deleteModal = useDisclosure();const [selectedJob, setSelectedJob] = useState<Job | null>(null);@@ -367,8 +380,14 @@ const JobsTable = memo(({ data, count, tags }: JobsTableProps) => {{accessorKey: "startDate",header: t`Start Date`,- cell: (item) => (- <DateTime value={item.getValue<string>()} variant="date" />+ // Scheduling dates are operational — resolve on the job's location+ // calendar, not the company's.+ cell: ({ row }) => (+ <DateTime+ value={row.original.startDate}+ variant="date"+ {...locationZoneProps(row.original.locationId)}+ />),meta: {icon: <LuCalendar />@@ -377,8 +396,12 @@ const JobsTable = memo(({ data, count, tags }: JobsTableProps) => {{accessorKey: "dueDate",header: t`Due Date`,- cell: (item) => (- <DateTime value={item.getValue<string>()} variant="date" />+ cell: ({ row }) => (+ <DateTime+ value={row.original.dueDate}+ variant="date"+ {...locationZoneProps(row.original.locationId)}+ />),meta: {icon: <LuCalendar />diff --git a/apps/erp/app/modules/production/ui/Planning/ProductionPlanningOrderDrawer.tsx b/apps/erp/app/modules/production/ui/Planning/ProductionPlanningOrderDrawer.tsxindex 76fc86867d..4b95516559 100644--- a/apps/erp/app/modules/production/ui/Planning/ProductionPlanningOrderDrawer.tsx+++ b/apps/erp/app/modules/production/ui/Planning/ProductionPlanningOrderDrawer.tsx@@ -43,6 +43,7 @@ import {LuTrash2} from "react-icons/lu";import { Link, useFetcher } from "react-router";+import { useRouteData } from "~/hooks";import { getLinkToItemPlanning } from "~/modules/items/ui/Item/ItemForm";import { ItemPlanningChart } from "~/modules/items/ui/Item/ItemPlanningChart";import { ItemReorderPolicy } from "~/modules/items/ui/Item/ItemReorderPolicy";@@ -74,6 +75,13 @@ export const ProductionPlanningOrderDrawer = memo(}: ProductionPlanningOrderDrawerProps) => {const fetcher = useFetcher<typeof bulkUpdateAction>();const { t } = useLingui();+ // Planned-order defaults are business dates on the plant's calendar — use+ // the loader's location-today, not the planner's browser zone.+ const planningData = useRouteData<{ locationToday?: string }>(+ path.to.productionPlanning+ );+ const locationToday =+ planningData?.locationToday ?? today(getLocalTimeZone()).toString();const { carbon } = useCarbon();// Memoize getExistingOrders callback@@ -155,16 +163,16 @@ export const ProductionPlanningOrderDrawer = memo(if (row.id) {const newOrder: ProductionOrder = {quantity: row.lotSize || row.minimumOrderQuantity || 1,- dueDate: today(getLocalTimeZone())+ dueDate: parseDate(locationToday).add({ days: row.leadTime ?? 0 }).toString(),- startDate: today(getLocalTimeZone()).toString(),+ startDate: locationToday,isASAP: false,periodId: periods[0].id};setOrders(row, [...orders, newOrder]);}- }, [row, orders, setOrders, periods]);+ }, [row, orders, setOrders, periods, locationToday]);const onRemoveOrder = useCallback((index: number) => {diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsxindex 5c2a89bc8a..0aa4a7756f 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx@@ -59,6 +59,7 @@ import { JobOperationStatus } from "~/modules/production/ui/Jobs/JobOperationStaimport { getPrivateUrl, path } from "~/utils/path";import { useKanban } from "../context/KanbanContext";import type { Item } from "../types";+import { useScheduleToday } from "../useScheduleToday";interface Progress {totalDuration: number;@@ -126,6 +127,7 @@ export function ItemCard({ item, isOverlay, progressByItemId }: ItemCardProps) {});const isHighlighted = selectedGroup === item.jobReadableId;+ const scheduleToday = useScheduleToday();const style = {transition,@@ -134,7 +136,7 @@ export function ItemCard({ item, isOverlay, progressByItemId }: ItemCardProps) {const isOverdue =item.deadlineType !== "No Deadline" && item.dueDate- ? new Date(item.dueDate) < new Date()+ ? item.dueDate < scheduleToday: false;const progress = progressByItemId[item.id]?.progress ?? 0;diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsxindex cd56529722..5c8288556b 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx@@ -45,6 +45,7 @@ import { getPrivateUrl, path } from "~/utils/path";import JobStatus from "../../../Jobs/JobStatus";import { useKanban } from "../context/KanbanContext";import type { JobItem } from "../types";+import { useScheduleToday } from "../useScheduleToday";interface Progress {totalDuration: number;@@ -185,6 +186,7 @@ export function JobCard({ item, isOverlay, progressByItemId }: JobCardProps) {const [customers] = useCustomers();const customer = customers.find((s) => s.id === item.customerId);+ const scheduleToday = useScheduleToday();const dueDate = getDateOnly(item.dueDate);const isDueDateValid = Boolean(dueDate && DATE_COLUMN_PATTERN.test(dueDate));const dueDateValue = isDueDateValid && dueDate ? dueDate : null;@@ -215,9 +217,7 @@ export function JobCard({ item, isOverlay, progressByItemId }: JobCardProps) {}const isOverdue =- (item.dueDate &&- status !== "Completed" &&- new Date(item.dueDate) < new Date()) ||+ (item.dueDate && status !== "Completed" && item.dueDate < scheduleToday) ||(item.dueDate &&item.completedDate &&status === "Completed" &&diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/useScheduleToday.ts b/apps/erp/app/modules/production/ui/Schedule/Kanban/useScheduleToday.tsnew file mode 100644index 0000000000..c228f2beef--- /dev/null+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/useScheduleToday.ts@@ -0,0 +1,16 @@+import { useRouteData } from "@carbon/react";+import { getLocalTimeZone, today } from "@internationalized/date";+import { path } from "~/utils/path";++/**+ * Today's `YYYY-MM-DD` on the schedule board's location calendar — the same+ * timezone the dates board resolves in its loader. Falls back to the viewer's+ * local calendar when the card renders outside that route (e.g. the+ * operations board). Compare against date-only columns with plain string+ * comparison — never `new Date(dueDate) < new Date()`, which reads a date as+ * midnight UTC and flags jobs due today as overdue for viewers behind UTC.+ */+export function useScheduleToday(): string {+ const data = useRouteData<{ timezone?: string }>(path.to.scheduleDates);+ return today(data?.timezone ?? getLocalTimeZone()).toString();+}diff --git a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsxindex f7b3ed8a83..288a9d0a93 100644--- a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx+++ b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx@@ -52,7 +52,7 @@ import {import { Link, useFetcher } from "react-router";import { SupplierAvatar } from "~/components";import { useUnitOfMeasure } from "~/components/Form/UnitOfMeasure";-import { useCurrencyFormatter } from "~/hooks";+import { useCurrencyFormatter, useRouteData } from "~/hooks";import type { SupplierPart } from "~/modules/items/types";import { SupplierPartForm } from "~/modules/items/ui/Item";import { getLinkToItemPlanning } from "~/modules/items/ui/Item/ItemForm";@@ -91,6 +91,13 @@ export const PurchasingPlanningOrderDrawer = memo(onSupplierChange}: PurchasingPlanningOrderDrawerProps) => {const { t } = useLingui();+ // Planned-order defaults are business dates on the plant's calendar — use+ // the loader's location-today, not the planner's browser zone.+ const planningData = useRouteData<{ locationToday?: string }>(+ path.to.purchasingPlanning+ );+ const locationToday =+ planningData?.locationToday ?? today(getLocalTimeZone()).toString();const fetcher = useFetcher<typeof bulkUpdateAction>();const { carbon } = useCarbon();@@ -210,10 +217,10 @@ export const PurchasingPlanningOrderDrawer = memo(const newOrder: PlannedOrder = {quantity: purchaseQuantity,- dueDate: today(getLocalTimeZone())+ dueDate: parseDate(locationToday).add({ days: selectedItem.leadTime ?? 0 }).toString(),- startDate: today(getLocalTimeZone()).toString(),+ startDate: locationToday,supplierId: selectedItem.preferredSupplierId,itemReadableId: selectedItem.readableIdWithRevision,description: selectedItem.name,diff --git a/apps/erp/app/modules/resources/resources.service.ts b/apps/erp/app/modules/resources/resources.service.tsindex 48b9fda83d..61d208571d 100644--- a/apps/erp/app/modules/resources/resources.service.ts+++ b/apps/erp/app/modules/resources/resources.service.ts@@ -382,7 +382,7 @@ export async function getLocationsList() {return client.from("location")- .select(`id, name`)+ .select(`id, name, timezone`).eq("companyId", companyId).order("name");}diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.jsonindex e2ba16f8e0..5b03886c8e 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json@@ -1,5 +1,5 @@{- "generated": "2026-08-05T21:50:58.234Z",+ "generated": "2026-08-06T04:11:06.770Z","totalTools": 1414,"modules": 15,"tools": [diff --git a/apps/erp/app/routes/x+/production+/planning.tsx b/apps/erp/app/routes/x+/production+/planning.tsxindex b20a4abff8..82ec98831c 100644--- a/apps/erp/app/routes/x+/production+/planning.tsx+++ b/apps/erp/app/routes/x+/production+/planning.tsx@@ -68,10 +68,10 @@ export async function loader({ request }: LoaderFunctionArgs) {locationId = locations.data?.[0].id as string;}- const periods = await getOrCreatePeriods(- datetime.today(await getLocationTimeZone(client, locationId, companyId)),- WEEKS_TO_PLAN+ const locationToday = datetime.today(+ await getLocationTimeZone(client, locationId, companyId));+ const periods = await getOrCreatePeriods(locationToday, WEEKS_TO_PLAN);const items = await getProductionPlanning(client,@@ -98,7 +98,10 @@ export async function loader({ request }: LoaderFunctionArgs) {items: (items.data ?? []) as ProductionPlanningItem[],count: items.count ?? 0,periods,- locationId+ locationId,+ // Planned-order date defaults are business dates on the plant's calendar —+ // the drawer must not seed them from the planner's browser zone.+ locationToday: locationToday.toString()};}diff --git a/apps/erp/app/routes/x+/purchasing+/planning.tsx b/apps/erp/app/routes/x+/purchasing+/planning.tsxindex 42a4430a8d..7b6261c76a 100644--- a/apps/erp/app/routes/x+/purchasing+/planning.tsx+++ b/apps/erp/app/routes/x+/purchasing+/planning.tsx@@ -68,10 +68,10 @@ export async function loader({ request }: LoaderFunctionArgs) {locationId = locations.data?.[0].id as string;}- const periods = await getOrCreatePeriods(- datetime.today(await getLocationTimeZone(client, locationId, companyId)),- WEEKS_TO_PLAN+ const locationToday = datetime.today(+ await getLocationTimeZone(client, locationId, companyId));+ const periods = await getOrCreatePeriods(locationToday, WEEKS_TO_PLAN);const items = await getPurchasingPlanning(client,@@ -98,7 +98,10 @@ export async function loader({ request }: LoaderFunctionArgs) {items: (items.data ?? []) as PurchasingPlanningItem[],count: items.count ?? 0,periods,- locationId+ locationId,+ // Planned-order date defaults are business dates on the plant's calendar —+ // the drawer must not seed them from the planner's browser zone.+ locationToday: locationToday.toString()};}diff --git a/apps/mes/app/components/DateTime.tsx b/apps/mes/app/components/DateTime.tsxindex 2704e2a94e..a38e3ffc2c 100644--- a/apps/mes/app/components/DateTime.tsx+++ b/apps/mes/app/components/DateTime.tsx@@ -1,18 +1,21 @@import type { DateTimeProps } from "@carbon/react";import { DateTime as DateTimeBase } from "@carbon/react";-import { Trans } from "@lingui/react/macro";-import { useLocationTimeZone } from "~/hooks/useCompanyTimeZone";+import {+ useCompanyTimeZone,+ useLocationTimeZone+} from "~/hooks/useCompanyTimeZone";/**- * MES timestamps default the tooltip's business-timezone row to the current- * location's zone — the shop floor runs on the site's clock.+ * MES timestamps carry both calendars: the company (ledger) zone and the+ * current location's zone — the shop floor runs on the site's clock.*/const DateTime = (props: DateTimeProps) => {+ const companyTimeZone = useCompanyTimeZone();const locationTimeZone = useLocationTimeZone();return (<DateTimeBase- timeZone={locationTimeZone}- timeZoneLabel={<Trans>Location</Trans>}+ companyTimeZone={companyTimeZone}+ locationTimeZone={locationTimeZone}{...props}/>);diff --git a/packages/react/src/DateTime.tsx b/packages/react/src/DateTime.tsxindex 9e199d4aa6..55f6143453 100644--- a/packages/react/src/DateTime.tsx+++ b/packages/react/src/DateTime.tsx@@ -31,19 +31,13 @@ export type DateTimeProps = {* - `relative` — "3 hours ago"* - `absolute` — short date + short time* - `time` — time of day only- * - `date` — date only (no time-of-day); tooltip drops the clock rows+ * - `date` — date only (no time-of-day)*/variant?: "relative" | "absolute" | "time" | "date";- /**- * Business timezone for the extra tooltip row — company or location- * depending on context. Hidden when it matches the viewer's zone or UTC.- */- timeZone?: string;- /**- * Semantic label for the business-timezone row ("Company", "Location", …) so- * the viewer can tell which offset is which. Falls back to the IANA name.- */- timeZoneLabel?: ReactNode;+ /** The company's IANA timezone (ledger calendar) — the Company row. */+ companyTimeZone?: string;+ /** The relevant location's IANA timezone (operational) — the Location row. */+ locationTimeZone?: string;/** Custom trigger element (e.g. an info icon) instead of the formatted text. */children?: ReactNode;/**@@ -69,7 +63,7 @@ function TooltipRow({}: {label: string;labelTitle?: string;- suffix?: ReactNode;+ suffix: ReactNode;value: string;timeZone: string;locale: string;@@ -85,7 +79,7 @@ function TooltipRow({<span className="text-[10px] font-medium uppercase tracking-wide text-muted-foreground">{suffix}</span>- <span className="text-xs font-medium tabular-nums">+ <span className="justify-self-end text-xs font-medium tabular-nums">{formatDateTimeInZone(value, timeZone, locale, {dateStyle: undefined,timeStyle: undefined,@@ -110,8 +104,8 @@ function TooltipRow({const DateTime = ({value,variant = "absolute",- timeZone,- timeZoneLabel,+ companyTimeZone,+ locationTimeZone,children,dateOptions,fallback = null,@@ -125,17 +119,15 @@ const DateTime = ({const viewerTimeZone = getLocalTimeZone();const isDate = variant === "date";- // A bare `YYYY-MM-DD` is a business date — its day starts at midnight in the- // business timezone (company/location), NOT midnight UTC. Anchoring there- // keeps the business row on the stated date; `toDate` resolves DST-skipped- // midnights to the day's true first instant.+ // A bare `YYYY-MM-DD` is a business date — its day starts at midnight on the+ // operational calendar: the location's when known, else the company's.+ // `toDate` resolves DST-skipped midnights to the day's true first instant.+ const anchorTimeZone = locationTimeZone ?? companyTimeZone ?? "UTC";const hasTime = value.includes("T");let instant = value;if (!hasTime) {try {- instant = parseDate(value)- .toDate(timeZone ?? "UTC")- .toISOString();+ instant = parseDate(value).toDate(anchorTimeZone).toISOString();} catch {instant = `${value}T00:00:00Z`;}@@ -153,8 +145,12 @@ const DateTime = ({? formatDate(value, dateOptions, locale): formatDateTime(value, locale);- const showBusinessRow =- !!timeZone && timeZone !== viewerTimeZone && timeZone !== "UTC";+ // Rows in fixed order: Company, Location, Local — dedupe identical zones so+ // a single-site viewer in the company zone sees one meaningful row.+ const showLocationRow =+ !!locationTimeZone && locationTimeZone !== companyTimeZone;+ const showLocalRow =+ viewerTimeZone !== companyTimeZone && viewerTimeZone !== locationTimeZone;// Computed once when the popover opens (the render `open` triggers) — no// ticking interval; the diff is a snapshot of the moment you opened it.@@ -167,11 +163,17 @@ const DateTime = ({// Only resolve offset labels while the tooltip is open — a table can mount// hundreds of these and the parse/format is not free.+ const companyOffsetLabel =+ open && companyTimeZone+ ? getTimeZoneOffsetLabel(instant, companyTimeZone)+ : "";+ const locationOffsetLabel =+ open && locationTimeZone+ ? getTimeZoneOffsetLabel(instant, locationTimeZone)+ : "";const viewerOffsetLabel = open? getTimeZoneOffsetLabel(instant, viewerTimeZone): "";- const businessOffsetLabel =- open && timeZone ? getTimeZoneOffsetLabel(instant, timeZone) : "";return (<Tooltip open={open} onOpenChange={setOpen} delayDuration={200}>@@ -196,43 +198,69 @@ const DateTime = ({{open && (<TooltipContent side={side} className="max-w-none p-0"><TooltipArrow />- <div className="border-b border-border px-3 py-2 text-xs text-muted-foreground tabular-nums">- {precise?.direction === "future" ? (- <Trans>in {precise?.text}</Trans>- ) : precise ? (- <Trans>{precise?.text} ago</Trans>- ) : (- // Bare date: exact day distance on the business calendar —- // "in 8 days", not a vague "next week".- formatRelativeCalendarDays(- value,- today(timeZone ?? viewerTimeZone).toString(),- locale- )- )}+ <div className="flex items-center justify-between gap-8 border-b border-border px-3 py-2 text-xs tabular-nums">+ <span className="text-muted-foreground">+ {precise?.direction === "future" ? (+ <Trans>in {precise?.text}</Trans>+ ) : precise ? (+ <Trans>{precise?.text} ago</Trans>+ ) : (+ // Bare date: exact day distance on the operational calendar —+ // "in 8 days", not a vague "next week".+ formatRelativeCalendarDays(+ value,+ today(anchorTimeZone).toString(),+ locale+ )+ )}+ </span>+ <span className="font-mono text-muted-foreground">+ {formatDateTimeInZone(instant, "UTC", locale, {+ dateStyle: undefined,+ timeStyle: undefined,+ month: "short",+ day: "numeric",+ year: "numeric"+ })}+ {" – "}+ {formatDateTimeInZone(instant, "UTC", locale, {+ dateStyle: undefined,+ timeStyle: undefined,+ hour: "2-digit",+ minute: "2-digit",+ hour12: true+ })}{" "}+ UTC+ </span></div><div className="grid grid-cols-[auto_auto_1fr_auto] items-center gap-x-2.5 gap-y-1.5 px-3 py-2.5 text-[0.8125rem]">- <TooltipRow- label="UTC"- value={instant}- timeZone="UTC"- locale={locale}- />- <TooltipRow- label={viewerOffsetLabel}- labelTitle={viewerTimeZone}- suffix={<Trans>Local</Trans>}- value={instant}- timeZone={viewerTimeZone}- locale={locale}- />- {showBusinessRow && (+ {companyTimeZone && (+ <TooltipRow+ label={companyOffsetLabel}+ labelTitle={companyTimeZone}+ suffix={<Trans>Company</Trans>}+ value={instant}+ timeZone={companyTimeZone}+ locale={locale}+ />+ )}+ {showLocationRow && (+ <TooltipRow+ label={locationOffsetLabel}+ labelTitle={locationTimeZone}+ suffix={<Trans>Location</Trans>}+ value={instant}+ timeZone={locationTimeZone}+ locale={locale}+ />+ )}+ {showLocalRow && (<TooltipRow- label={businessOffsetLabel}- labelTitle={timeZone}- suffix={timeZoneLabel ?? timeZone}+ label={viewerOffsetLabel}+ labelTitle={viewerTimeZone}+ suffix={<Trans>Local</Trans>}value={instant}- timeZone={timeZone}+ timeZone={viewerTimeZone}locale={locale}/>)}