From 895d50694b13f641ee563c7d056ddf64ed8fefc6 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Tue, 10 Dec 2024 18:24:41 +0200 Subject: [PATCH] client: format dates and times in the "About" section --- src/public/app/widgets/dialogs/about.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/dialogs/about.js b/src/public/app/widgets/dialogs/about.js index 794f26dc9..942487ca3 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()) {