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

API: strange effects with timezones whose abbrev matches a US timezone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1
    • core-libs
    • None
    • sparc
    • solaris_2.5.1



      Name: mc57594 Date: 01/31/97


      My TZ environment variable is Australia/South
      date displays as Fri Jan 31 16:27:26 CST 1997

      I create a date by calling getLastModified() on a URLConnection
      This seems to be created from the Last-modified: line in the HTTP
      headers, which is expressed as
      Last-modified: Tue, 21 Jan 1997 02:56:21 GMT

      The date displays correctly using the (deprecated) toGMTString()
      method, but displays wrongly as Mon Jan 20 20:56:21 CST 1997
      when using the default conversion to string. It should be
      Tue Jan 21 13:26:21 CST 1997.

      The timezone for South Australia is abbreviated to CST, the same
      as a timezone in the USA.

      company - DSTO Salisbury , email - ###@###.###
      ======================================================================

            ssenthilsunw Shanmugam Senthil (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: