This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/dev by this push:
new 2bff049d fix: display timezone on Dashboard when set to UTC
2bff049d is described below
commit 2bff049d90366b65e10741f7c78d71c2345350d6
Author: sy-records <[email protected]>
AuthorDate: Mon Oct 28 13:06:23 2024 +0800
fix: display timezone on Dashboard when set to UTC
---
ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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}>