I am generating unix timestamp using Date dt=new Date(); long timestamp=dt.getTime()/1000;
It generates accurate timestamp, but while converting same timestamp into date its returning date which is 5 hours 30 min lesser than current date.
Code is running in India.
Is there any problem related with time zone? If yes, then could you please help me in setting those appropriate timezone?
Thanx