Skip to content

Build your personal knowledge base with Trilium Notes

correct formatting of minutes less than 10 (lead zero)

azivner0ef8da5bad60
diff --git a/static/js/init.js b/static/js/init.js
index fbdf7d59f9..ab6f6f1e79 100644
--- a/static/js/init.js
+++ b/static/js/init.js
@@ -17,7 +17,7 @@ $(document).bind('keydown', 'alt+s', function() {
function formatDate(date) {
const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " +
- date.getHours() + ":" + date.getMinutes();
+ date.getHours() + ":" + (date.getMinutes() <= 9 ? "0": "") + date.getMinutes();
return dateString;
}