Is there a trick to set/change the date and time in Bangle emulators? #8012
|
I can't manage to change the time in either of the Bangle JS1/2 emulators. E.g., using I would very much like to set the time, in order to test/experiment code that depends on the date and time. Is there something I can do to get the emulator to stop tracking the browser/system time? |
Answered by
gfwilliams
Aug 31, 2026
Replies: 1 comment 1 reply
|
I'm afraid there's nothing built-in. The emulator uses |
1 reply
Answer selected by
mdoggydog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm afraid there's nothing built-in. The emulator uses
Date.now()(https://github.com/espruino/Espruino/blob/master/targets/emscripten/jshardware.c#L136) so either you could change your PC's time settings, or in the browser's JS console you could override the browser's Date.now implementation: