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

remove date error

parent dcb4a669
...@@ -55,7 +55,6 @@ public class DownloadFile { ...@@ -55,7 +55,6 @@ public class DownloadFile {
private class DownloadingTask extends AsyncTask<Void, Void, Void> { private class DownloadingTask extends AsyncTask<Void, Void, Void> {
File apkStorage = null;
File outputFile = null; File outputFile = null;
@Override @Override
...@@ -111,7 +110,6 @@ public class DownloadFile { ...@@ -111,7 +110,6 @@ public class DownloadFile {
outputFile.setWritable(true); outputFile.setWritable(true);
Log.e(TAG, "File Created"); Log.e(TAG, "File Created");
} }
// output handle // output handle
FileOutputStream fos = new FileOutputStream(outputFile); FileOutputStream fos = new FileOutputStream(outputFile);
......
...@@ -13,6 +13,7 @@ import com.example.zxa01.iotclient.component.privacy.PrivacyActivity; ...@@ -13,6 +13,7 @@ import com.example.zxa01.iotclient.component.privacy.PrivacyActivity;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.List; import java.util.List;
import java.util.TimeZone;
import java.util.stream.Collectors; import java.util.stream.Collectors;
public class RecordViewModel extends ViewModel { public class RecordViewModel extends ViewModel {
...@@ -79,7 +80,7 @@ public class RecordViewModel extends ViewModel { ...@@ -79,7 +80,7 @@ public class RecordViewModel extends ViewModel {
} }
private String convertDateTime(String dateTime) { 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"); SimpleDateFormat postConvert = new SimpleDateFormat("yyyy-MM-dd HH:mm");
String convertDateTime = ""; String convertDateTime = "";
try { 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