fully working release
This commit is contained in:
@@ -54,7 +54,7 @@ local function sca_setup_timezone()
|
|||||||
summerTime = true
|
summerTime = true
|
||||||
elseif (month == 2) then
|
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 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
|
summerTime = true
|
||||||
else
|
else
|
||||||
summerTime = false
|
summerTime = false
|
||||||
@@ -71,7 +71,6 @@ local function sca_setup_timezone()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
// Odd... Windows returns timezoned os.time, hmmm.... Need to check it on Linux
|
|
||||||
local function sca_msg_to_player(time)
|
local function sca_msg_to_player(time)
|
||||||
if (msg[time] != nil) then
|
if (msg[time] != nil) then
|
||||||
for k, v in ipairs(player.GetHumans()) do
|
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
|
// Germany timezone in summer is UTC+1, in winter is UTC+2
|
||||||
if summerTime then
|
if summerTime then
|
||||||
time = time + 3600
|
|
||||||
else
|
|
||||||
time = time + 7200
|
time = time + 7200
|
||||||
|
else
|
||||||
|
time = time + 3600
|
||||||
end
|
end
|
||||||
|
|
||||||
local timeModulo = time % 60
|
local timeModulo = time % 60
|
||||||
|
|||||||
Reference in New Issue
Block a user