This is an automated email from the ASF dual-hosted git repository.
zuston pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
The following commit(s) were added to refs/heads/master by this push:
new 5e4901767 [MINOR] fix(dashboard): Display the registration time in
24-hour format (#1752)
5e4901767 is described below
commit 5e49017672820533bf5a59d1e8bc0fa5bae95978
Author: RickyMa <[email protected]>
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}