merge to main (#28)

* Add next thursday

* fix next thursday
main
Ehseezed 2 years ago committed by GitHub
parent 31331d13ad
commit 5bc5f32958
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -11,8 +11,9 @@
<script> <script>
function updateTimer() { function updateTimer() {
const now = new Date(); const now = new Date();
const nextThursday = new Date(2025, 2, 6, 0, 0, 0, 0); let nextThursday = new Date(2025, 2, 6, 0, 0, 0, 0);
while (nextThursday.getDate() - now.getDate() < 7) { while (nextThursday - now < 604800000) {
nextThursday.setDate(nextThursday.getDate() + 7); nextThursday.setDate(nextThursday.getDate() + 7);
} }
nextThursday.setHours(0, 0, 0, 0); nextThursday.setHours(0, 0, 0, 0);

Loading…
Cancel
Save