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

Doc: Date.getTimezoneOffset description errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.2
    • 1.4.0
    • core-libs
    • mantis
    • generic
    • generic

      The replacement should be:

      -(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(DST_OFFSET))/60000


      The second example date (Date(96, 5, 1)) is June 1, 1996, not May 1, 1996.

            okutsu Masayoshi Okutsu
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: