Show the modification date/time using the "nl" locale

This commit is contained in:
Paul van Tilburg 2017-12-27 21:20:17 +01:00
parent 1f1e4ed079
commit e709985ba2
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@ function triggerSelect(listId) {
.addClass("bg-" + bgColors[list.index])
.addClass("text-" + textColors[list.index]);
$('#listName').text('Lijst van ' + list.name)
$('#listUpdatedAt').text('Laaste aanpassing op: FIXME');
mtime = new Date(list.mtime.secs_since_epoch * 1000);
$('#listUpdatedAt').text('Laaste aanpassing op ' +
mtime.toLocaleDateString("nl") + ' om ' + mtime.toLocaleTimeString("nl"));
$('#listData').html(list.data);
$('#editButton').show();
});