Hi TestDemo,
Greetings!!!
If you are using Calendar API without setting the TimeZone, it will give the time as per location of the server is running.
So in this case as your location is different from server location it will give you two different time as per their TimeZone.
So I suggest you to set a TimeZone in that it will give you same time whatever the location is. Adding on this if you fetch time in miliSec using Calendar.getInstance().getTime().getTime() it will always be same whatever the location is.
Let me know if it helps.
Thanks
Vishnu Garg