Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-986

The SharedRenderer fails to get the Default Locale when a headerDateFormat is specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.5
    • 1.1.7
    • Schedule
    • None

    Description

      When the t:schedule specifies the "headerDateFormat" attribute, the Shared Renderer doesn't use the default locale, instead, it only creates a new SimpleDateFormat. Patch provided:

      AbstractScheduleRenderer.java

      Change
      ======================================================================

      format = new SimpleDateFormat(pattern);

      To
      ======================================================================

      if (context.getApplication().getDefaultLocale() != null)

      { format = new SimpleDateFormat(pattern, context .getApplication().getDefaultLocale()); }

      else

      { format = new SimpleDateFormat(pattern); }

      Attachments

        Issue Links

          Activity

            People

              cagatay_civici Cagatay Civici
              ricardo_ramirez Ricardo Ramírez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: