From 2e000fc2f51b3bba4ebd4de475f46abd962972a8 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 31 Oct 2023 18:38:08 -0400 Subject: Fixed timezone issue with countdown --- app/views/wittle/puzzles/about.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/wittle/puzzles/about.html.haml b/app/views/wittle/puzzles/about.html.haml index 8bdb11e..2abf1ad 100644 --- a/app/views/wittle/puzzles/about.html.haml +++ b/app/views/wittle/puzzles/about.html.haml @@ -46,7 +46,7 @@ $("#hours").text(pad(parseInt(parseInt(totalSeconds/60)/60))) } } - var totalSeconds = #{(1.day.from_now.beginning_of_day - DateTime.now).to_i + 1} + var totalSeconds = #{(Time.now.tomorrow.beginning_of_day - Time.now).to_i + 1} setTime() var timerInterval = setInterval(setTime, 1000); %p.summary Wittle was created by Hatkirby, with major help from Sigma144 (who wrote the puzzle generation code) and jbzdarkid (who wrote the puzzle solving web interface). If you encounter any bugs, or have feedback regarding puzzle difficulty level, feel free to contact me! I am hatkirby on Discord, and you can also find me in the Witness Speedrunning server. -- cgit 1.4.1