Skip to content

Datestrings from moment not correctly localized #2448

@raimund-schluessler

Description

@raimund-schluessler

The dates that moment.js parses are not correctly localized anymore. This happens since the migration to vite as a bundler in #2321.

nextcloud/moment should normally load the correct localization on its own, which it did when the app was still build with webpack.

Since we switched to vite, the bundled moment version always uses the english locale. Weirdly, when executing moment in the javascript console, the correct locale is used (but that might be the global moment from server).

@susnux Do you have any idea what could go wrong with vite that the locale does not work anymore?

Example image:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions