minor fix and example messages
This commit is contained in:
@@ -35,13 +35,13 @@ local function sca_setup_timezone()
|
||||
end
|
||||
|
||||
for i = 0, 11, 1 do
|
||||
if (daysPastUnixYear - daysPerMonth[i] > daysPerMonth[i]) then
|
||||
month = month + 1
|
||||
if (daysPastUnixYear - daysPerMonth[i] > daysPerMonth[i]) then
|
||||
if (i == 1 && (year % 4 == 0 || (year % 400 == 0 && year % 100 != 0))) then
|
||||
daysPastUnixYear = daysPastUnixYear - (daysPerMonth[i] + 1)
|
||||
else
|
||||
daysPastUnixYear = daysPastUnixYear - daysPerMonth[i]
|
||||
end
|
||||
month = month + 1
|
||||
else
|
||||
day = daysPastUnixYear - daysPerMonth[i]
|
||||
break
|
||||
@@ -69,6 +69,7 @@ local function sca_setup_timezone()
|
||||
else
|
||||
summerTime = false
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
local function sca_msg_to_player(time)
|
||||
|
||||
Reference in New Issue
Block a user