From 479c32037729a7d2f9b6c2c3cfeaa63f0f8321bf Mon Sep 17 00:00:00 2001 From: Adil Sadqi <42699429+AdilSadqi@users.noreply.github.com> Date: Sun, 7 Apr 2024 00:08:53 +0000 Subject: [PATCH] Update main.js.download --- index_files/main.js.download | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/index_files/main.js.download b/index_files/main.js.download index 6f4a711..4d2b7e2 100644 --- a/index_files/main.js.download +++ b/index_files/main.js.download @@ -197,31 +197,21 @@ function commander(cmd) { addLine("Your current IP address is: " + ip, "color2", 80); }); break; + case "time": - // Function to get current local time and date + // Function to get current local time and date in UK format function getCurrentTime() { const now = new Date(); const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', timeZoneName: 'short' }; - const formattedTime = now.toLocaleString('en-US', options); - addLine("Current Local Time: " + formattedTime, "color2", 80); + const formattedTime = now.toLocaleString('en-GB', options); + addLine("Current Local Time (UK): " + formattedTime, "color2", 80); } - // Displaying the current local time and date + // Displaying the current local time and date in UK format getCurrentTime(); break; - case "update": - addLine("Opening Updater...", "color2", 80); - setTimeout(function() { - var url = '/update'; - var win = window.open(url, '_self'); - if (win) { - win.addEventListener('load', function() { - win.document.documentElement.requestFullscreen(); - }); - } - }, 1000); - break; - case "sudo": + + case "sudo": addLine("Oh no, you're not admin...", "color2", 80); addLine("---------------------------","color2", 80); loopLines(help, "color2 margin", 80);