Day light savings - changing with API does not update IPCs

d5775927

Getting comfortable
Dec 11, 2019
359
308
Israel
I live in a place where the day light savings changes are weird (change happens is a different date every year).
I noticed, that when I change the timezone on the NVR the change is immediacy propagated to all IPCs (upon save).
I tried to mimic this behavior, by using the HTTP API to change the timezone in the NVR, however, when I change the NVR timezone from the API, the timezone doesn't update in the IPC until I reboot the IPC.

Any suggestion of how to make the timezone change in the NVR to propagate to the IPCs (preferably without reboot of NVR/IPCs).
 
What happens if you set the time via HTTP?

API.jpg
 
  • Like
Reactions: d5775927
What happens if you set the time via HTTP?

View attachment 144493
It didn't work, when I use this API, the time is propagated to the IPCs, but the minutes/seconds are not synced with the NTP, also after a while (probably next NTP sync) the time is reverted (to use the old timezone).

However, I think I have found other API that makes it work:
1667375432145.png

So on daylight time change I need to use 2 APIs:
1. Change Timezone (depends on current locale to what timezone to change and on which dates).
2. Set NTP server to enable (even though it's already enabled, this seems to force update the time in the IPCs)
 
  • Like
Reactions: TonyR