Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-144

DateTool can be improved to allow cross-localization of format strings

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.x
    • Component/s: GenericTools
    • Labels:
      None
    • Environment:
      All VELTOOLS versions

      Description

      I thought I had reported this earlier, but evidently not.

      We use SimpleDateFormat patterns (which are always specified in English-style yyyy-MM-dd form) all over our application and we'd like to be able to display those patterns in a locale-sensitive way (for instance aaaa-MM-jj in the FR locale). DateTool is in a nice position to be able to do this conversion for us, since it wraps a SimpleDateFormat object.

        Activity

        Hide
        chris@christopherschultz.net Christopher Schultz added a comment -

        Fixed in r1149273.

        Added DateTool.toLocalizedString(String pattern, Locale locale) method.

        Show
        chris@christopherschultz.net Christopher Schultz added a comment - Fixed in r1149273. Added DateTool.toLocalizedString(String pattern, Locale locale) method.

          People

          • Assignee:
            Unassigned
            Reporter:
            chris@christopherschultz.net Christopher Schultz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development