Skip to content

[Aurora] - Replacement for moment #94

Description

@sneridagh

Important

If you are not a member of the Volto Team or Developers Team in the Plone GitHub organization, then do not work on or comment on this issue.

There are places in Volto where we are still using moment, for parsing dates probably. We need to investigate an find a proper and sustainable solution.

Link to the parent PLIP
plone/volto#6638

Additional context

Add any other context or screenshots about the PLIP task here.

Activity

  1. changed the title [-][Seven] - Replacement for `moment`.[/-] [+][Seven] - Replacement for `moment`[/+] on Feb 8, 2025
  2. moved this from Planned to No status in Bucharest Sprint 2025on Mar 24, 2025
  3. self-assigned this
    on Mar 24, 2025
  4. moved this to In Progress in Bucharest Sprint 2025on Mar 24, 2025
  5. tedw87 commented on Mar 27, 2025

    @tedw87
    Contributor

    As part of the effort to replace moment.js in Volto, I have encountered limitations with some external components like SingleDatePicker and TimePicker, which still require a moment object as their input value. This makes it difficult to fully remove moment from the codebase without also replacing these components.

    To address this, I have started testing the DatePicker and TimeField components from @plone/components, which are built on top of react-aria-components and do not depend on moment. These components offer a more modern and accessible approach, while allowing us to work with native Date objects and ISO strings.

    I've opened a work-in-progress PR to test the integration of these components in the current Volto DatetimeWidget:
    plone/volto#6886

    This PR is not ready to be merged, but it serves as a starting point for evaluating this direction.

  6. pnicolli commented on Apr 8, 2025

    @pnicolli
    Collaborator

    For Seven, let's keep in mind that we depend on react-aria-components and therefore can easily use @internationalized/date which is a very good alternative to moment.js https://react-spectrum.adobe.com/internationalized/index.html

  7. 2 remaining items

  8. moved this from In Progress to Todo in Auroraon Apr 8, 2025
  9. moved this from Todo to In Progress in Auroraon May 15, 2025
  10. moved this from Todo to In progress in Bucharest Sprint 2026on Mar 16, 2026
  11. self-assigned this
    on May 19, 2026
  12. changed the title [-][Seven] - Replacement for `moment`[/-] [+][Aurora] - Replacement for `moment`[/+] on Jun 2, 2026
  13. transferred this issue fromplone/voltoon Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions