mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
correct formatting of minutes less than 10 (lead zero)
This commit is contained in:
parent
c315975995
commit
0ef8da5bad
@ -17,7 +17,7 @@ $(document).bind('keydown', 'alt+s', function() {
|
|||||||
|
|
||||||
function formatDate(date) {
|
function formatDate(date) {
|
||||||
const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " +
|
const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " +
|
||||||
date.getHours() + ":" + date.getMinutes();
|
date.getHours() + ":" + (date.getMinutes() <= 9 ? "0": "") + date.getMinutes();
|
||||||
return dateString;
|
return dateString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user