Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-18654

Forms : problem with date format when editing the date field with jsf date widget if your locale is fr_FR, XsltFunctions.java don't test the format date for europen locale param.

    XMLWordPrintable

    Details

    • 2.9 Status:
      Resolved

      Description

      context : If your locale is fr_FR
      when you want to use the date widget to add a new date in a OSP form , if you click on the date widget icon, the date format wich is returned is always mm/dd/yyyy even if you want an other format like dd/mm/yyyy.
      I found that the calendar2.js is always called, regardless of the local parameter.

      I think that the problem is in the file : XsltFunctions.java
      /metaobj/metaobj-util/tool-lib/src/java/org/sakaiproject/metaobj/utils/xml/XsltFunctions.java
      in version 2.6x, line 171: we find
      if (format.getLocaleDateFormat() == DateWidgetFormat.DD_MM_YYYY())

      after having modify with:
      if (format.getLocaleDateFormat().equals(DateWidgetFormat.DD_MM_YYYY()))
      the format detection is correct and the good : calendar1.js is called for europeens (fr_FR, es, nl etc..)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                noahbotimer Noah Botimer
                Reporter:
                japignon jacques pignon
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration