Skip to content

Date/Time Pickers: Allow custom date/time localizers to be provided #533

Description

@charlieTheBotDev

Context

Currently it is not possible to provide a date localizer when creating a new Date/Time picker, with it defaulting instead to an en-GB only version, or using moment.js if present. In 2.1.0 an Intl.DateTimeFormat variation was created.

Now that preferences can use the proper RFC5456 locales and IANA timezones, pcikers should be updated to allow custom date time localizers to be created and passed in as an option as opposed to doing a default lookup based on preferences.

The DefaultDateTimeLocalizer, IntlDateTimeLocalizer and MomentDateTimeLocalizer should be exposed, along with a way (either class or documentation) to allow custom ones to be created using other libraries.

Your Environment

  • Hexagon Version: <=2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions