I am working on application which is based on getting current time. I am having the issue when i change my mobile time then it also changes time in the app hence the false time value is accepted in the server / database ,
i'm using firebase as my database. i'm using this code to get date and time ,
Date date = Calendar.getInstance().getTime();
DateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
String strDate = dateFormat.format(date);**