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

Need a way to read and write ZipEntry timestamp using local date/time without tz conversion

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b75
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        As of this writing the ZipEntry.setTime and getTime convert the timestamp (unix time long)
        to default Timezone, this is a problem for pack200 and unpack200 implementations,
        where the timestamps are stored in UTC, and in order to circumvent the current limitations
        of getTime and setTime causes issues as described in JDK-8073187.

        This is a request to add new APIs setTimeUTC and getTimeUTC which will write the
        long as-is with no conversions, similar to POSIX gmtime(3C).

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sherman Xueming Shen
                Reporter:
                ksrini Kumar Srinivasan
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: