Update toast creator to display proper date string
This commit is contained in:
@@ -44,7 +44,7 @@ function createToast(notificationMessage){
|
|||||||
toastTitle.appendChild(document.createTextNode("Server Notification"));
|
toastTitle.appendChild(document.createTextNode("Server Notification"));
|
||||||
|
|
||||||
const toastTime = document.createElement('small');
|
const toastTime = document.createElement('small');
|
||||||
toastTime.appendChild(document.createTextNode(Date.now().toLocaleString()));
|
toastTime.appendChild(document.createTextNode(new Date(Date.now()).toLocaleString()));
|
||||||
|
|
||||||
const toastClose = document.createElement('button');
|
const toastClose = document.createElement('button');
|
||||||
toastClose.type = 'button';
|
toastClose.type = 'button';
|
||||||
|
|||||||
Reference in New Issue
Block a user