Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriegshauser committed Jan 2, 2024
1 parent 912401c commit b95fb5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core-development/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ visual breakpoints and inspecting of objects.
It can be very useful to set the current date to debug calendar issues. In order to do this, override `Date.now` with a lambda in *config/config.js*:

```js
Date.now = () => new Date('2023-12-31T14:05:32');
Date.now = () => new Date('2023-12-31T14:05:32').valueOf();
```

This will cause every request for the current time to return the specified time, at least for the core and built-in modules.
Expand Down
2 changes: 1 addition & 1 deletion module-development/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ information in your README file.**
- What external API's it depends upon, including web links to those
- Whether the API/request require a key and the user limitations of those. (Is
it free?)
- **Do not use `new Date()` for the current timestamp, instead prefer `Date.now()`
- **Do not use `new Date()` for the current timestamp, instead prefer `new Date(Date.now())`
as it can be more [easily overridden for debugging](..\core-development\debugging.md#Date)**.

Surely this also help you get better recognition and feedback for your work.
Expand Down

0 comments on commit b95fb5e

Please sign in to comment.