system.kanoa.asset.getSiteTimezoneOffset(paramsDict)
Given an assetPath or assetId, this function will return the offset and timezone for the site. If a startDate is provided the timezone offset for that date will be returned otherwise the offset for the current time will be returned
Parameters
paramsDict Dictionary
| - assetId | Integer | |
| - assetPath | String | |
| - startDate | DateTime |
Returns
tzOffSetMins Integer
timeZone (str)
Example
paramsDict = {'assetId': 901}
tzOffSetMins, timezone = system.kanoa.asset.getSiteTimezoneOffset(paramsDict)