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

    • b75
    • generic
    • generic
    • Verified

        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).

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

                Created:
                Updated:
                Resolved: