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
iPhone: How to fix a cheat based on changing the device's date? Is there a server I can get the time from?
You can use an NTP server that tells you the time.
Right until someone uses a proxy server to figure out what NTP server you are trying to connect to, and then spoofs the NTP response... as others have mentioned, the response is easy to parse, and thus easy to forge.
A better solution would be to use something like Google App Engine (free), to send your app some kind of encrypted response that would boil down to the server time. If the client time deviated from that by too much, the app would simply use the server time for calculations. Then even if they intercept the request they will not easily be able to send back the correct response.
But basically in any networked game, you must always assume the client is lying. The only real way to prevent issues is to have everything go through a server, so a client cannot decide it's suddenly rich and have any other client agree it is so...
Related Topics
How to Cancel Usernotifications
iOS Document/File Type Associations - Wildcard Uti
Add a Navigation Bar to a View Without a Navigation Controller
Using Two Versions of a Cocoapod Dependency
How to Check Text Field Input at Real Time
Capture Location in All States App
How to Detect When User Used Password Autofill on a Uitextfield
Hide Status Bar and Increase the Height of Uinavigationbar
iOS - Using Uisearchdisplaycontroller with Uisearchbar That Is Uibarbuttonitem in Uitoolbar
How to Use Avcapturephotooutput to Capture Photo Swift + Xcode
Confirm Back Button on Uinavigationcontroller
How to Calculate Current Location in Watchkit Extension
Keep Getting "Unbalanced Calls to Begin/End Appearance Transitions for <Viewcontroller>" Error
Remove Uiwebview's Internal Cache
Open Viewcontroller from Tab Like in Instagram Camera Page on iOS