From 7a6e711bb5637ed969503799f28ef6b951354e33 Mon Sep 17 00:00:00 2001 From: Fangh Date: Sun, 28 Jan 2024 17:53:37 +0100 Subject: [PATCH] fix timer of vote --- Assets/Scripts/VotingPage.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/Scripts/VotingPage.cs b/Assets/Scripts/VotingPage.cs index 93469e0..9a97463 100644 --- a/Assets/Scripts/VotingPage.cs +++ b/Assets/Scripts/VotingPage.cs @@ -40,10 +40,7 @@ private void Update() if (DateTime.Now < endOfTimer) { - Debug.Log(DateTime.Now); - Debug.Log(endOfTimer); - Debug.Log((DateTime.Now - endOfTimer).TotalSeconds); - timerLabel.text = (DateTime.Now - endOfTimer).TotalSeconds.ToString("D2"); + timerLabel.text = (endOfTimer - DateTime.Now).TotalSeconds.ToString("D2"); } else {