mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 20:52:27 +08:00
client: format dates and times in the "About" section
This commit is contained in:
parent
19e40bf46b
commit
895d50694b
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user