How to change time and timezone in iPhone simulator?

前端 未结 11 1799
礼貌的吻别
礼貌的吻别 2020-12-04 11:52

How do I change time and time zone in the iPhone simulator?

11条回答
  •  忘掉有多难
    2020-12-04 12:33

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

    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.

提交回复
热议问题