Oops!
This commit is contained in:
parent
290f45c364
commit
859bd74c59
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue