I have following code, my target is going to return GMT+0 time in millisec. But Why I always get my local timezone millisec?
GMT+0
Calendar cal
The millisec of a Date object in Java is just the milliseconds since GMT+0 1970/01/01 00:00:00. It's independent of the Time Zone. Time Zone is a property to format the Date to a readable string.
millisec
GMT+0 1970/01/01 00:00:00