Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-616

DateTranslator provides a wrong pattern string.

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.0
    • unspecified
    • Framework
    • None
    • Tapestry 4.0-beta5
      Locale:zh_CN

    Description

      My Page:
      <binding name="translator" value="translator:date,pattern=yyyyMMdd"/>
      My locale is zh_CN.

      give me wrong message about pattern is "AAAANNJJ".
      I can't understand AAAANNJJ.I think we understand yyyyMMdd

      In DateTranlator.java ,I find that method:
      protected Object[] getMessageParameters(Locale locale, String label)
      {
      String pattern = getDateFormat(locale).toLocalizedPattern().toUpperCase(locale);

      return new Object[]

      { label, pattern }

      ;
      }

      I wish change it as:

      String pattern = getDateFormat(locale).toPattern();

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bitiboy Jun Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: