Skip to content

Commit

Permalink
fix: sun == 0, during week before competition weekend
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnikaStein committed Feb 27, 2024
1 parent 33e9d2e commit 5ea0bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function locate() {
var d = new Date();
console.log(d.toUTCString());
// Monday = 1, Saturday = 6, Sunday = 0 - don't ask why
if(d.getUTCHours() >= 14 || d.getUTCDay() != 0 ) {
if(d.getUTCHours() >= 14 || d.getUTCDay() == 0 ) {
console.log("Take later comp (B)");
var german_closer = document.getElementById("main-de-3");
var english_closer = document.getElementById("main-en-3");
Expand Down

0 comments on commit 5ea0bd0

Please sign in to comment.