Merge pull request #1435 from Applevangelist/patch-43

Update ATIS.lua
This commit is contained in:
Frank 2021-01-20 11:16:54 +01:00 committed by GitHub
commit 3ed8ca63a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1318,6 +1318,10 @@ function ATIS:onafterBroadcast(From, Event, To)
time=time-UTILS.GMTToLocalTimeDifference()*60*60
end
if time < 0 then
time = 24*60*60 - time --avoid negative time around midnight
end
local clock=UTILS.SecondsToClock(time)
local zulu=UTILS.Split(clock, ":")
local ZULU=string.format("%s%s", zulu[1], zulu[2])