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;
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue