Skip to content

Build your personal knowledge base with Trilium Notes

use ISO dateformat on the frontend instead of european formatting

azivnerf440493e45ac
diff --git a/src/public/javascripts/services/utils.js b/src/public/javascripts/services/utils.js
index 95ccc25998..527b052efd 100644
--- a/src/public/javascripts/services/utils.js
+++ b/src/public/javascripts/services/utils.js
@@ -24,7 +24,10 @@ function formatTimeWithSeconds(date) {
}
function formatDate(date) {
- return padNum(date.getDate()) + ". " + padNum(date.getMonth() + 1) + ". " + date.getFullYear();
+// return padNum(date.getDate()) + ". " + padNum(date.getMonth() + 1) + ". " + date.getFullYear();
+ // instead of european format we'll just use ISO as that's pretty unambiguous
+
+ return formatDateISO(date);
}
function formatDateISO(date) {