Closed pathanparvezkhan closed 6 months ago
Please provide the details for implementation (SDK method or API) for "Daylight saving setting" feature.
It's quite troublesome to implement this using the existing interface. We will discuss it tomorrow and get back to you as soon as possible
After setting the lock time by SDK, then call the API to update the time zone, then update the lockdata you are using.
SDK:+ (void)setLockTimeWithTimestamp:(long long)timestamp lockData:(NSString *)lockData success:(TTSucceedBlock)success failure:(TTFailedBlock)failure; note: timestamp = currentTimeStamp + (currentTimezoneRawOffSet - key.timezoneRawOffset); currentTimeStamp : The timestamp of the current time (in millisecond) currentTimezoneRawOffSet:The offset between your time zone and UTC, in millisecond .For example UTC+8 is 28800000. key.timezoneRawOffset:the lock detail returned by the server interface(https://cnopen.sciener.com/document/doc?urlName=cloud%2Flock%2Fdetail.html)
API :https://euopen.sciener.com/document/doc?urlName=cloud%2Flock%2FchangeTimezoneRawOffsetEn.html