Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8034972

Era translation wrong for "AD" -> "??.d.C." Romanian lang.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 7u51
    • globalization
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.7.0_51"
      Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      Date with millis 0 translates to "1970.01.01 [î.d.C.] at 12:00:00 GMT" (that should be equivalent to "1970.01.01 [AD] at 12:00:00 GMT". But "î.d.C." is equivalent to "BC". "înainte de Cristos" == "before [of] Christ".

      I guess "AD" should be translated to "dC". "după Cristos" == "after Christ".
      Also maybe it's better to have "îdC" instead of "î.d.C".

      So "îdC" or "î.Hr." mean "BC" and "dC" or "d.Hr." mean "AD".

      java.text.SimpleDateFormat was used to produce that string from a new Date(0).

      Btw. the bug submit form might not work well with UTF-8 chars. See this wiki page, "Vezi" section link for correct chars: http://ro.wikipedia.org/wiki/E.n.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      1970.01.01 [dC] at 12:00:00 GMT
      ACTUAL -
      1970.01.01 [î.d.C.] at 12:00:00 GMT

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Date d = new Date(0);
      SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd G 'at' hh:mm:ss z");
      sdf.setTimeZone(new SimpleTimeZone(0, "GMT"));
      System.out.println(sdf.format(d));

      ---------- END SOURCE ----------

            keshah Ketan Shah (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: