Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: display timezone on Dashboard when set to UTC

sy-records2bff049d9036
diff --git a/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx b/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx
index 302cfae9..c19cddbd 100644
--- a/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx
+++ b/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx
@@ -94,7 +94,10 @@ const HealthStatus: FC<IProps> = ({ data }) => {
<Col xs={6}>
<span className="text-secondary me-1">{t('timezone')}</span>
<strong>
- {data.time_zone.split('/')?.[1]?.replaceAll('_', ' ')}
+ {(data.time_zone.split('/')?.[1] ?? data.time_zone).replaceAll(
+ '_',
+ ' ',
+ )}
</strong>
</Col>
<Col xs={6}>