Skip to main content

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

- assetIdInteger
- assetPathString
- startDateDateTime

Returns

tzOffSetMins Integer
timeZone (str)


Example

paramsDict = {'assetId': 901}
tzOffSetMins, timezone = system.kanoa.asset.getSiteTimezoneOffset(paramsDict)