MagicMirrorOrg / MagicMirrorOrg/MagicMirror

[Change Request] Migrate away from Date and Moment in favor of something that is actively supported and easy to use

Open
#3,808 23 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement PR Welcome
Dominant language
JavaScript
Stars
23.9k
Forks
4.6k
Avg merge
17h 31m
Merged PRs (30d)
25

Description

What problem do you want to solve with this change?

Moment library is in maintenance mode

What do you think is the correct solution?

Migrate MagicMirror to another Datetime library that is lightweight, usable and supports timezone calculations well.

Participation
  • I am willing to submit a pull request for this change.
Additional comments

Javascript Date is not very usable especially with calculations and timezones and Moment (and Moment Timezone) are currently in maintenance mode. Luxon is the succesor of Moment that uses the Intl API. There are probably other options aswell which we can discuss here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing MagicMirror's current uses of JavaScript Date, Moment, and Moment Timezone, then compare candidate datetime libraries against the stated usability, lightweight, support, and timezone requirements. Done means MagicMirror has migrated away from Date and Moment to a selected library that supports the required timezone calculations.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.