How to change time and timezone in iPhone simulator? How to change time and timezone in iPhone simulator? xcode xcode

How to change time and timezone in iPhone simulator?


I'm guessing it uses your system timezone, so changing the TZ in System Preferences would probably do the trick

Screenshot for description


You can set the TZ environment variable in an Xcode Scheme to set the time zone just for that app.

Manage Schemes

You can use UTC, PST, EST, as well as place-based timezone names such as America/Los_Angeles. It's not well documented, but I suspect any time zone name should work.

It's not well documented, but the source is an Apple Developer Support rep on the developer forums.


Restart the Simulator after changing the system date time preferences and you shall see the changes reflected. It worked for me.