I make next operation:
Set time zone on device to GMT+0400 (NOT from code)
Create new Date
And print time (SimpleDateFormat) – in milliseconds
Got
11-19 19:16:40.920: I/System.out(30070): TEST TIME:1353330825273 TIME:19.11
When i change on device my timeZone to GMT+0600
and now create Date with milliseconds 1353330825273
Date myDate=new Date(1353330825273L);
But when i print time again i got
11-19 19:17:00.920: I/System.out(30070): TEST TIME:1353330825273 TIME:21.11
Time format string is: k:mm
Why? How to disable timeZone modifing my time?
It has to do with formatting, not timezone, but in case you want to disable timezone, then do something like this:
This will set your timezone to GMT/UTC