Update toast creator to display proper date string

This commit is contained in:
Logan Cusano
2023-07-16 01:54:13 -04:00
committed by logan
parent 61d7b69c10
commit 6ffa12911a

View File

@@ -44,7 +44,7 @@ function createToast(notificationMessage){
toastTitle.appendChild(document.createTextNode("Server Notification"));
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');
toastClose.type = 'button';