Skip to content

Commit

Permalink
Merge pull request #95 from dathbe/master
Browse files Browse the repository at this point in the history
Non-substantive changes per recommendations
  • Loading branch information
timdows authored Apr 1, 2024
2 parents 444c3aa + 30f1377 commit 16546f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/runtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
Expand Down
2 changes: 1 addition & 1 deletion MMM-JsonTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Module.register("MMM-JsonTable", {
if (typeof input === "string" && m.isValid()) {
// Show a formatted time if it occures today
if (
m.isSame(new Date(), "day") &&
m.isSame(new Date(Date.now()), "day") &&
m.hours() !== 0 &&
m.minutes() !== 0 &&
m.seconds() !== 0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MMM-JsonTable

A module for the [MagicMirror²](https://github.com/MichMich/MagicMirror) project which creates a table filled with a list gathered from a json request.
A module for the [MagicMirror²](https://github.com/MagicMirrorOrg/MagicMirror) project which creates a table filled with a list gathered from a json request.

All the variables of the objects in the array are represented by a table column.
For every column it checks if a valid DateTime is given, and then formats it to `HH:mm:ss` if it is today or `YYYY-MM-DD` otherwise.
Expand Down

0 comments on commit 16546f4

Please sign in to comment.