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

This commit is contained in:
Adorian Doran 2024-12-10 18:24:41 +02:00
parent 19e40bf46b
commit 895d50694b

View File

@ -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()) {