Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-219

DateUtils.toGeneralizedTime does not work with some Locales

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0-M28
    • 1.0.0-M29, 1.0.0-M32
    • None

    Description

      Over in SOLR-6915 I've run into an issue with a few Locales when trying to use Apache Directory Server via the Hadoop MiniKDC. Here's an example failure that happens on JDK8: https://issues.apache.org/jira/browse/SOLR-6915?focusedCommentId=14287516&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14287516

      The locales that have a problem for me are:
      th_TH_TH_#u-nu-thai
      ja_JP_JP_#u-ca-japanese
      hi_IN

      I've tracked these problems to DateUtils.toGeneralizedTime(), which is returning the following to me for these 3 locales, respectively:
      ๒๕๕๘๐๑๒๗๐๑๐๘๐๖.๙๒๙Z
      270127010806.259Z
      २०१५०१२७०१०८०६.०४०Z

      Attachments

        Activity

          People

            Unassigned Unassigned
            gchanan Gregory Chanan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: