-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change timezone of simulator #4355
Comments
@asafkorem any idea? |
Hey @puelocesar, Anyhow, it's very likely that we won't do that, since that's something that can be mocked within your app easily. Just make a date/time provider (which can be a soft wrapper for your current provider) in your code and mock it. You can use launch-arg as a parameter for the mocking. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
In Bitrise and my local machine works fine compare Dates with iOS But using Android in my Local machine is in UTC Thanks |
Description
On Xcode, I can change the TimeZone of the simulator by going to "Edit Scheme -> Run configuration -> Arguments Tab -> Add Environment Variables" and add TZ as the iOS env. But I could not find a way of doing that on Detox, the only thing I found on the documentation was launch args, which is a different thing.
Is there a way to achieve this with Detox? I tried several ways of passing TZ, but none worked
Your environment
Detox version:
React Native version:
Node version:
Device model:
OS:
Test-runner (select one): jest / other
The text was updated successfully, but these errors were encountered: