Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Format date and time
Adorian Doran970c3bd7adec
diff --git a/src/public/app/widgets/type_widgets/options/backup.js b/src/public/app/widgets/type_widgets/options/backup.jsindex 1cdfddad95..027453faf3 100644--- a/src/public/app/widgets/type_widgets/options/backup.js+++ b/src/public/app/widgets/type_widgets/options/backup.js@@ -98,10 +98,15 @@ export default class BackupOptions extends OptionsWidget {backupFiles = [{filePath: t('backup.no_backup_yet'), mtime: ''}];}+ const dateTimeFormatter = new Intl.DateTimeFormat(navigator.language, {+ dateStyle: "medium",+ timeStyle: "medium"+ });+for (const {filePath, mtime} of backupFiles) {this.$existingBackupList.append($(`<tr>- <td>${(mtime) ? mtime : "-"}</td>+ <td>${(mtime) ? dateTimeFormatter.format(new Date(mtime)) : "-"}</td><td>${filePath}</td></tr>`));