Global Timer Countdown not working?

Hello! I’m K0rrupt! Also know as “xt12t” and “K0rruqt”!

I was making a Global Timer Countdown, but the timer doesn’t seem to have the good countdown time on it

By the time I’m writing this it is 19:19EST (7:19PM EST)

I want the timer to end October 31st at 00:00 (12AM) but it seems that its doing to end October 31st at 20:00EST (8:00PM EST)

Do you guys know how to fix this? All feedbacks and tips are appreciated!

Timer:

Timer Script:
image

local countdownText = countdownGui:WaitForChild("CountdownText")

local day = os.time({year = 2021, month = 10, day = 31, hour = 0, min = 0, sec = 0})

while wait() do 
	
	local secondsBetween = os.difftime(day, os.time())
	
	local seconds = secondsBetween % 60 --- 60 seconds 
	local minutes = math.floor(secondsBetween % (60 * 60) / 60) --- answer is 60 minutes 
	local hours = math.floor(secondsBetween % (60 * 60 * 24) / (60 * 60 )) --- answer is 24 hours 
	local days = math.floor(secondsBetween % (60 * 60 * 24 * 30) / (60 * 60 * 24)) --- answer is 30 days
	local months = math.floor(secondsBetween % (60 * 60 * 24 * 30 * 12) / (60 * 60 * 24 * 30)) --- answer is 12 months

	
	
	local textString = "Halloween in: "..months.."m:"..days.."d:".. hours.."h:"..minutes.."m:"..seconds.."s"
		countdownText.Text = textString
		
	if secondsBetween <= 0 then break end 
end ```
1 Like

Pretty sure 8PM est is 12AM UTC (Universal Time Coordinated), so it’s going by that instead of the local time.

1 Like

Ohhhhhhhhhhhhhh! Yeah that makes a lot of sense!