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; buttonflags.disabled = false;
function updateTime() { function updateTime() {
curTime.setTime( curTime.setTime(
Date.now() - Date.now()
curTime.getTimezoneOffset() * 60 * 1000 -
user.utc_offset * 1000
); );
time.innerHTML = curTime.toLocaleTimeString(); time.innerHTML = curTime.toLocaleTimeString("en-us", { timeZone: "America/Chicago" });
weekday.innerHTML = curTime.toLocaleString("en-us", { weekday: "long" }); weekday.innerHTML = curTime.toLocaleString("en-us", { weekday: "long", timeZone: "America/Chicago" });
window.requestAnimationFrame(updateTime); window.requestAnimationFrame(updateTime);
} }