minor fix and example messages

This commit is contained in:
2024-09-05 08:52:27 +02:00
parent 8dc02e984d
commit e284174358
2 changed files with 25 additions and 3 deletions

View File

@@ -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)