#COORDINATE - Fix is day/night for Kola locations when the sun either never rises or never sets.

This commit is contained in:
Applevangelist 2024-06-20 08:51:54 +02:00
parent 5f9d4405b1
commit f9f0a8e866

View File

@ -2748,6 +2748,9 @@ do -- COORDINATE
local sunrise=UTILS.GetSunRiseAndSet(DayOfYear, Latitude, Longitude, true, Tdiff)
local sunset=UTILS.GetSunRiseAndSet(DayOfYear, Latitude, Longitude, false, Tdiff)
if sunrise == "N/R" then return false end
if sunrise == "N/S" then return true end
local time=UTILS.ClockToSeconds(clock)
-- Check if time is between sunrise and sunset.