Skip to content

Build your personal knowledge base with Trilium Notes

client: format dates and times in the "About" section

Adorian Doran895d50694b13
diff --git a/src/public/app/widgets/dialogs/about.js b/src/public/app/widgets/dialogs/about.js
index 794f26dc94..942487ca34 100644
--- a/src/public/app/widgets/dialogs/about.js
+++ b/src/public/app/widgets/dialogs/about.js
@@ -1,8 +1,9 @@
-import server from "../../services/server.js";
-import utils from "../../services/utils.js";
+import { formatDate } from "../../utils/formatters.js"
import { t } from "../../services/i18n.js";
import BasicWidget from "../basic_widget.js";
import openService from "../../services/open.js";
+import server from "../../services/server.js";
+import utils from "../../services/utils.js";
const TPL = `
@@ -68,7 +69,7 @@ export default class AboutDialog extends BasicWidget {
this.$appVersion.text(appInfo.appVersion);
this.$dbVersion.text(appInfo.dbVersion);
this.$syncVersion.text(appInfo.syncVersion);
- this.$buildDate.text(appInfo.buildDate);
+ this.$buildDate.text(formatDate(new Date(appInfo.buildDate)));
this.$buildRevision.text(appInfo.buildRevision);
this.$buildRevision.attr('href', `https://github.com/TriliumNext/Notes/commit/${appInfo.buildRevision}`);
if (utils.isElectron()) {