Commit d41108d9 authored by DESKTOP-NFGF3PG\zxa01's avatar DESKTOP-NFGF3PG\zxa01

remove date error

parent dcb4a669
......@@ -55,7 +55,6 @@ public class DownloadFile {
private class DownloadingTask extends AsyncTask<Void, Void, Void> {
File apkStorage = null;
File outputFile = null;
@Override
......@@ -111,7 +110,6 @@ public class DownloadFile {
outputFile.setWritable(true);
Log.e(TAG, "File Created");
}
// output handle
FileOutputStream fos = new FileOutputStream(outputFile);
......
......@@ -13,6 +13,7 @@ import com.example.zxa01.iotclient.component.privacy.PrivacyActivity;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.TimeZone;
import java.util.stream.Collectors;
public class RecordViewModel extends ViewModel {
......@@ -79,7 +80,7 @@ public class RecordViewModel extends ViewModel {
}
private String convertDateTime(String dateTime) {
SimpleDateFormat preConvert = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.mmm");
SimpleDateFormat preConvert = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
SimpleDateFormat postConvert = new SimpleDateFormat("yyyy-MM-dd HH:mm");
String convertDateTime = "";
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment