Mark McIntyre
Mark McIntyre
@g7gpr i have an NTP server running on a Pi and all my systems including the cameras are configured to sync to it When i have time (anaaha) I'll stick...
> I don't think we should write any code that needs the host to be set to a specific time zone. This is trickier than i thought. In order for...
> ``` > def computeLocalTimeOffset(): > utc_time = datetime.datetime.now(datetime.timezone.utc).replace(tzinfo=None) > local_time = datetime.datetime.now() > return round((local_time - utc_time).total_seconds() / 3600,2) > ``` This works if the station is set to...
However, i still think we'd need to set the camera to a specific TZ or at a minimum read its current TZ and calculate the correct offset. I have a...
ps - meant to add absolutely fine to work on my code, I'm just testing my changes for PR700
I think the part thats missing is that the cameras are not necessarily set to the same TZ as the station. OOTB they're set to Bejing time. Cameracontrol's init routine...
> I don't fully understand. With NTP off, and say, the tz left in china. When we set time and set reboot to 1500, it will reboot at system time...
> [@markmac99](https://github.com/markmac99) - Does the command to change the timezone work? Whenever I set a different timezone, and try to read it back, it has not changed. > No, it...