-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Feature request: Debug date #3252
Comments
Just add |
This might be a helpful addition to the module-development section of the documentation if someone wants to create a PR for that ;-) |
Setting |
@buxxi this didn't quite work. The date/time typically in the top-middle shows the hard-coded date/time, but many modules still show actual time. Any other ideas? |
I went through and changed everywhere doing |
Also created MagicMirrorOrg/MagicMirror-Documentation#218 for the documentation fixup |
To see which modules are using |
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. |
I looked at documentation and through the code and didn't see any way to easily do this.
As a developer, it would be beneficial to have MagicMirror use a simulated debug date. This could be specified in config.json for example, and then become useful for tests.
This would essentially replace all calls to
moment()
withmoment(config.debugDate)
sincemoment(undefined)
falls back to returning the current date/time. Anything else that doesn't usemoment()
would also need fixup.The text was updated successfully, but these errors were encountered: