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
getTimeInMillis() method return the current time as UTC milliseconds from the epoch. So, you are getting same milliseconds even both calendar object has different timezone.