The Cessna 152 clock doesn't give the right time
Posted: Thu Apr 15, 2021 8:41 pm
It looks like FS2020 doesn't return the values as expected. I updated the script with this quick, naïve patch, so it at least gives the time I want (the Dutch time)
Code: Select all
function PT_time(s_l,m_l,h_l,s_z,m_z,h_z)
if user_prop_get(prop_time) == "Local" then
h = var_format(h_l, 0)
m = var_format(m_l - (h * 60), 0)
s = var_format(s_l - ((h * 60 * 60)+(m*60)), 0)
h = h + 2
else
s = s_z
m = m_z
h = h_z
end
rotate(img_sec_hand, s * 6)
rotate(img_small_hand, h * 30 + m * 6 / 12)
rotate(img_big_hand, m * 6)
end