fully working release
This commit is contained in:
@@ -54,7 +54,7 @@ local function sca_setup_timezone()
|
||||
summerTime = true
|
||||
elseif (month == 2) then
|
||||
// If its less than 6 days until end of the month (aka last Weekday in the month) and its sunday and its 3 am or later....
|
||||
if ((daysPerMonth[month] - day <= 6) && weekDay == 3 && hoursInSeconds >= 10800) then
|
||||
if ((daysPerMonth[month] - day <= 6) && weekDay == 3 && hoursInSeconds >= 7200) then
|
||||
summerTime = true
|
||||
else
|
||||
summerTime = false
|
||||
@@ -71,7 +71,6 @@ local function sca_setup_timezone()
|
||||
end
|
||||
end
|
||||
|
||||
// Odd... Windows returns timezoned os.time, hmmm.... Need to check it on Linux
|
||||
local function sca_msg_to_player(time)
|
||||
if (msg[time] != nil) then
|
||||
for k, v in ipairs(player.GetHumans()) do
|
||||
@@ -87,9 +86,9 @@ local function sca_timer_loop()
|
||||
|
||||
// Germany timezone in summer is UTC+1, in winter is UTC+2
|
||||
if summerTime then
|
||||
time = time + 3600
|
||||
else
|
||||
time = time + 7200
|
||||
else
|
||||
time = time + 3600
|
||||
end
|
||||
|
||||
local timeModulo = time % 60
|
||||
|
||||
Reference in New Issue
Block a user