Added new function returing the current time for a given timezone also handling the summer and winter time
This commit is contained in:
parent
27dcb5e2fb
commit
4de0b20d37
@ -131,3 +131,10 @@ function getUTCtime(unixtimestmp)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function getTime(unixtimestmp, timezoneoffset)
|
||||||
|
time = getUTCtime(unixtimestmp + (3600 * timezoneoffset))
|
||||||
|
if ( isSummerTime(time) ) then
|
||||||
|
time = getUTCtime(unixtimestmp + (3600 * (timezoneoffset + 1)) )
|
||||||
|
end
|
||||||
|
return time
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user