Skip to content

Commit

Permalink
we are so back
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxich committed Aug 28, 2023
1 parent 7179af0 commit d5e3be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const timeDiv = document.getElementById("timezone");
let myTime;

function setTime() {
myTime = new Date().toLocaleTimeString("en-US", {timeZone: "Asia/Shanghai", hour: 'numeric', minute: '2-digit'});
myTime = new Date().toLocaleTimeString("en-US", {timeZone: "America/New_York", hour: 'numeric', minute: '2-digit'});
timeDiv.innerHTML = "(it's currently " + myTime + " for me)";
}

Expand Down

0 comments on commit d5e3be6

Please sign in to comment.