Any way to set time of IOS simulator progamatically?

I am currently facing an issue where my appium scripts won’t open the IOS emulator without running into an error because our application code now searches for device time and this returns null. I’m almost certain this is because the IOS emulator in Appium pulls its device time from the laptop. Is there any way to set device time for IOS in Appium?

AFAIK simulator time is always synchronized with the host time, so it would be necessary to change the host macOS clock.

No way in Appium.

However, you may be able to use command line utility ‘simctl’ to change shown time. It’s referenced in the following link, but as you will see it may not be reliable: