You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uniffle.apache.org by zh...@apache.org on 2024/08/02 06:41:01 UTC
(incubator-uniffle) branch branch-0.9 updated: [MINOR] fix(dashboard): Display the registration time in 24-hour format (#1752)
This is an automated email from the ASF dual-hosted git repository.
zhengchenyu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new e1495b9b6 [MINOR] fix(dashboard): Display the registration time in 24-hour format (#1752)
e1495b9b6 is described below
commit e1495b9b6b8869c1a078d9e52dab486b3a3c8ca7
Author: RickyMa <ri...@tencent.com>
AuthorDate: Mon Jun 3 14:49:31 2024 +0800
[MINOR] fix(dashboard): Display the registration time in 24-hour format (#1752)
### What changes were proposed in this pull request?
Display the registration time in 24-hour format.
### Why are the changes needed?
The current displayed registration time follows the system time of the machine. If the system is set to a 12-hour format, then the page will display the time in a 12-hour format. If the system is set to a 24-hour format, then the page will display the time in a 24-hour format. It's not clear in the UI whether it's AM or PM when the Linux machine uses the 12-hour format.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing UTs.
---
dashboard/src/main/webapp/src/utils/common.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dashboard/src/main/webapp/src/utils/common.js b/dashboard/src/main/webapp/src/utils/common.js
index 2bbbdf1ef..d8c9488f2 100644
--- a/dashboard/src/main/webapp/src/utils/common.js
+++ b/dashboard/src/main/webapp/src/utils/common.js
@@ -43,7 +43,7 @@ const memFormatter = (row, column, cellValue) => {
* @returns {string}
*/
const dateFormatter = (row, column, cellValue) => {
- return moment(cellValue).format("YYYY-MM-DD hh:mm:ss");
+ return moment(cellValue).format("YYYY-MM-DD HH:mm:ss");
}
export {memFormatter, dateFormatter}