Add date to scheduled maintenance notifs

This commit is contained in:
L. Bradley LaBoon 2022-09-14 22:33:35 -04:00
parent 1343a2e435
commit 65f189d7a2

View File

@ -627,6 +627,12 @@ import { settings, elements, apiDelete, apiGet, apiPost, eventTitles, parseParam
data.notifications[i].message += " For more information, please see your open support tickets."; data.notifications[i].message += " For more information, please see your open support tickets.";
} }
if (data.notifications[i].type == "migration_scheduled") {
var now = new Date();
var migrateStart = new Date(data.notifications[i].when + "Z");
data.notifications[i].message += " If no action is taken, the migration will start automatically on " + migrateStart.toLocaleString() + " (in " + timeString(migrateStart - now, false) + ").";
}
var notification = document.createElement("div"); var notification = document.createElement("div");
notification.className = elements.notification; notification.className = elements.notification;
var header = document.createElement("h1"); var header = document.createElement("h1");