Added new function returing the current time for a given timezone also handling the summer and winter time
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user