Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Inquiry About Moment.js Deprecation in Metronic


Hi,

We are currently updating our app, which is based on Metronic. In light of Moment.js being deprecated, we are trying to transition away from it. Could you please let us know if Keenthemes is actively working on addressing this issue in Metronic?

Thank you for your time and assistance.

Best regards,


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


Moment.js is a popular JavaScript library for working with dates and times, but it has been officially deprecated in favor of more modern alternatives like Luxon, Day.js, or date-fns. In the context of Metronic, if you're relying on Moment.js for handling date and time functionalities, it's important to start migrating to one of these recommended libraries for better performance and future compatibility. Much like dr gina sam 7 second morning ritual that promotes health and wellness with minimal effort, transitioning away from Moment.js to newer libraries can streamline your workflow and improve the overall efficiency of your project with just a small but impactful change.



Hi,

Sorry for the late reply. To upgrade moment.js you can edit package.json and use "moment": "^2.30.1" latest moment package for your project. Then just run "npm install" or "yarn" and rebuild your assets with gulp or webapck.

Regards,
Sean


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(