This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 6fc8a6e9c7942ff32a5899f285643c50230cc69d
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}>

Reply via email to