This commit is contained in:
MeowcaTheoRange 2023-12-21 16:35:53 -06:00
parent 290f45c364
commit 859bd74c59

View file

@ -35,12 +35,10 @@ fetch("https://pronouns.cc/api/v1/users/MeowcaTheoRange")
buttonflags.disabled = false;
function updateTime() {
curTime.setTime(
Date.now() -
curTime.getTimezoneOffset() * 60 * 1000 -
user.utc_offset * 1000
Date.now()
);
time.innerHTML = curTime.toLocaleTimeString();
weekday.innerHTML = curTime.toLocaleString("en-us", { weekday: "long" });
time.innerHTML = curTime.toLocaleTimeString("en-us", { timeZone: "America/Chicago" });
weekday.innerHTML = curTime.toLocaleString("en-us", { weekday: "long", timeZone: "America/Chicago" });
window.requestAnimationFrame(updateTime);
}