Ability to set date/time on ios (and android) devices (new method) #49
Replies: 1 comment
-
To set the date within a Docker container without impacting the host system or monitoring, the most effective method is to use libfaketime, a library that intercepts system calls related to time and date, allowing the container to report a different time without modifying the actual system clock. To implement this, add the following to your Dockerfile: WORKDIR / Then, run your application with the LD_PRELOAD and FAKETIME environment variables set: LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1 FAKETIME_NO_CACHE=1 python /srv/intercept/manage.py runserver 0.0.0.0:3000 The FAKETIME environment variable can be dynamically set to a specific date and time (e.g., 2020-01-01) or a relative offset (e.g., +15d) to simulate different time scenarios. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
instead of changing the date within the simulated ios, what we would do is provide a command line dcd option that allows us to set the date OF the container running the maestro script. (that should work, as in Maestro, when running on the client, we can set the date on our Macs and get it to work). the container seems likely to be inside of docker, but you likely get the idea now.
Beta Was this translation helpful? Give feedback.
All reactions