Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
  • Device capabilities & events
    • Browse by device type
    • Device capabilities
      • Common methods
      • Detection and alarms
      • Image
      • PTZ
      • Light
      • Recording
      • Audio
      • Media
      • Network
      • Power
      • Privacy
      • Call
      • Storage
      • System
      • Algorithm
      • Maintenance
        • device.reboot.execute (Reboot device)
        • device.restore.execute (Factory reset)
        • device.time.sync (Platform time sync)
        • device.time.get (Read UTC clock)
        • device.timezone.set (Set time zone)
        • device.timezone.get (Read time zone)
        • device.timezonerule.get (Query daylight saving rules)
        • device.wifi.current (Current Wi-Fi)
        • device.wifi.scan (Scan Wi-Fi hotspots)
        • device.wifi.control (Connect or disconnect Wi-Fi)
        • device.upgrade.process (Upgrade progress)
        • device.upgrade.execute (Trigger upgrade)
        • device.name.set (Rename device)
        • device.cover.refresh (Refresh cover image)
        • device.password.verify (Verify password)
        • device.password.set (Change password)
      • Control
    • Events overview
    • Permission codes
    • Capability error codes
    • Alarm and capability messages
    • Capability FAQ
    • Legacy ability and push types
  • API reference
  • SDK and tools
  • Solutions
  • Platform and support
On this page
What it does
Request URL
Minimum permission
Request parameters
Request example
Response data fields
Response example
Error codes

device.timezonerule.get (Query daylight saving rules)

device.timezonerule.get: Query daylight saving rules

What it does

Not a device operation. No deviceId. Queries the platform region time zone and daylight saving rule table. This method does not appear in device.capability.list.

Request URL

POST https://openapi-[DataCenter].easy4ip.com/openapi/v2/device.timezonerule.get

Minimum permission

Account-level platform rule query: only a valid token is required (administrator / sub-user / sub-account). No device binding or share permission check; unrelated to device Config.

Request parameters

NameTypeRequiredDefaultLegal valuesDescription
tokenStringyesAccess token for an administrator, sub-user, or sub-account
areaNameStringyesIANA region namee.g. Asia/Shanghai

For common request fields and signing, see Signing conventions and Common request payload.

Request example

{
 "id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
 "system": {
 "ver": "1.0",
 "appId": "lcdxxxxxxxxx",
 "sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
 "time": 1706511734,
 "nonce": "f5a1ae2d-c09c-4d39-a744-83a5c2c653c2"
 },
 "params": {
 "token": "<yourAccessToken>",
 "areaName": "Asia/Shanghai"
 }
}

Response data fields

NameTypeDescription
deviceAreaObjectRegion rules
deviceArea.areaNameStringTime zone name
deviceArea.deviceInfoStringTime zone rules as a JSON string

Response example

{
 "id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
 "result": {
 "code": "0",
 "msg": "Operation is successful",
 "data": {
 "deviceArea": {
 "areaName": "Asia/Shanghai",
 "deviceInfo": "{\"offset\":\"+08:00\"}"
 }
 }
 }
}

Error codes

This API may return the codes below.

This API does not access the device.

Gateway

device.timezone.get (Read time zone)
device.wifi.current (Current Wi-Fi)