ZipEntry.getTime() unpredictable results

c b

I am experimenting with ZipEntry.getTime() on Android. However I am seeing different results on different devices for the SAME zip&file: 1419755996000, 1419752396000, 1419730796000, 1419770396000, 1419737996000, 1419745196000, 1419759596000, ...

Differences from my device in hours are as follows: +2h, +1h, -5h, +6h, -3h, -1h, ...

These numbers are obtained from real devices around the world by means of analytics&logging. Since I am using the long result of getTime() directly I am not expecting for the timezone to matter.

How can these differences by explained and what can I do to obtain a uniform result on all devices ?

Dawood ibn Kareem

Inside a zip file, the date and time of each entry are stored as a year, month, day, hour, minute and second, coded up into a long value. No timezone is specified. When this is converted to a Java Date (which represents an instant in time) in the course of the getTime() method, it is converted according to the system timezone.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Reduce returns unpredictable results for parallel stream

From Dev

R mdy_hms unpredictable results?

From Dev

How to create nested loops under unpredictable results

From Dev

Python's fuzzywuzzy returns unpredictable results

From Dev

CSS image centering within centered container gives unpredictable results

From Dev

Unpredictable results from hook_entity_update in Drupal 8

From Dev

Combining then sorting Javascript arrays. Getting unpredictable results

From Dev

Creating and modifying an empty Pandas DataFrame results in unpredictable behavior

From Dev

First printf() in series of printfs malfunctioning, returning unpredictable results

From Dev

OpenCL clock_gettime vs kernel profiling : strange results

From Dev

OpenCL clock_gettime vs kernel profiling : strange results

From Dev

ZipEntry to File

From Dev

ZipEntry to File

From Dev

Unpredictable FileWriter

From Dev

Using the @MinDate from class-validator results in TypeError: Cannot read property 'getTime' of undefined?

From Dev

java: change ZipEntry name

From Dev

Java ObjectOutputStream Not Writing to ZipEntry

From Dev

ZipEntry to byte array

From Dev

Javascript gettime()

From Dev

Android GridView unpredictable behavior

From Dev

Unpredictable query performance in Postgresql

From Dev

Unpredictable file order in gulp

From Dev

glGetUniformLocation unpredictable behavior

From Dev

Multithreading "unpredictable" behavior

From Dev

Unpredictable output of recursion of main()

From Dev

Unpredictable poisson noise

From Dev

DbContext SaveChanges unpredictable

From Dev

DIG Unpredictable TTL in DNS

From Dev

Unpredictable file order in gulp

Related Related

HotTag

Archive