Added new function returing the current time for a given timezone also handling the summer and winter time

This commit is contained in:
ollo 2016-05-15 17:31:22 +02:00
parent 27dcb5e2fb
commit 4de0b20d37

View File

@ -131,3 +131,10 @@ function getUTCtime(unixtimestmp)
end
function getTime(unixtimestmp, timezoneoffset)
time = getUTCtime(unixtimestmp + (3600 * timezoneoffset))
if ( isSummerTime(time) ) then
time = getUTCtime(unixtimestmp + (3600 * (timezoneoffset + 1)) )
end
return time
end