Skip to content

[🚀 Feature Request ]: How to switch timezones on the fly #503

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

Open
justusbunsi opened this issue May 14, 2025 · 0 comments
Open

[🚀 Feature Request ]: How to switch timezones on the fly #503

justusbunsi opened this issue May 14, 2025 · 0 comments

Comments

@justusbunsi
Copy link

Idea

I know, this fit neither "feature request" nor "bug", but no other template matches. Sorry about that.

We would like to run multiple test suites after another that requires different timezones.
It seems that cleanly changing the emulator timezone requires to recreate the whole container.

What we tried

  • Start a container without immediately starting the supervisor processes:
    docker run --rm -it -e TZ=Europe/Berlin -e EMULATOR_DEVICE="Samsung Galaxy S10" -e WEB_VNC=true --device /dev/kvm -p 0.0.0.0:6081:6080 --entrypoint /bin/sh budtmo2/docker-android-pro:emulator_13.0_v2.11.1-p0 -c "trap \"exit\" TERM; while true; do sleep 1; done"
  • Inside the container, trigger the original ENTRYPOINT script after changing EMULATOR_ADDITIONAL_ARGS to our timezone needs.
    EMULATOR_ADDITIONAL_ARGS='-timezone Europe/Kyiv' /home/androidusr/docker-android/mixins/scripts/run.sh
    This does change the timezone - as in "it's not Europe/Berlin anymore 😆". It seems to be UTC for some reason.

Anyway, when stopping the ENTRYPOINT script, some zombie processes are left.

Probelm to solve

Is there a clean way to switch timezones - without recreating the container? Hope, this is not as confusing as I feel right now. 🙂

Additional Note

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant