Skip to content

Commit

Permalink
Merge pull request #4 from chantellosejo/patch-1
Browse files Browse the repository at this point in the history
Fix timezone bug in getDate()
  • Loading branch information
Mettymagic authored Sep 8, 2024
2 parents 5aea62e + 2d94e55 commit f012a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Neopets - Battledome Set Selector.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ function clone(data) {
}

function getDate() {
return new Date().toLocaleString("en-US", {timeZone: "PST"}).slice(0, 10).replace(",","")
return new Date().toLocaleString("en-US", {timeZone: "America/Los_Angeles"}).slice(0, 10).replace(",","")
}

function getItemURL(node, ability=false) {
Expand Down Expand Up @@ -1822,4 +1822,4 @@ function addFightCSS() {
border-radius: 50%;
}
`
}
}

0 comments on commit f012a90

Please sign in to comment.