2020-01-10T01:22:50.000+0000
public static String getRealTime(String time) {
if (time == null || TextUtils.isEmpty(time))
return "";
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SSSZZZZ");
DateFormat df2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = null;
try {
date = df.parse(time);
} catch (ParseException e) {
e.printStackTrace();
}
return df2.format(date);
}