Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6542

API to grab language's date formats

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      While working on PUBLISHING-97, I stumbled upon a key (publishingMonitor.dateformat) and some code that do something useful, but in the wrong place IMHO. I'm talking about the following: https://git.magnolia-cms.com/projects/MODULES/repos/publishing/browse/magnolia-publishing-app/src/main/java/info/magnolia/publishing/app/monitor/PublishingMonitorViewImpl.java#265-266

      It shouldn't be an app's responsibility to translate date formats, instead, they should come from UI (or core), and be supplied by us. I don't believe we have the tooling to do that yet.

      User stories:

      • As a non-English Magnolia user, I would like dates to be formatted in a native way, if I have updated my preferences to use Magnolia in my own language.
      • As a Magnolia core/app developer, I want to be able to grab the default date format for the user in a standard way.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mmichel Maxime Michel
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoR