|
@ -151,9 +151,7 @@ public class DateUtil {
|
|
|
}
|
|
|
|
|
|
public static String utcToDate(Date date) {
|
|
|
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
|
|
|
String utcDate = sdf1.format(date);
|
|
|
return utcDate;
|
|
|
return DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'").format(dateToLocalDateTime(date));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@ -1515,8 +1513,6 @@ public class DateUtil {
|
|
|
throw new IllegalArgumentException("The value of an argument is inaccurate.");
|
|
|
}
|
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat(format);
|
|
|
|
|
|
return dateToStr(date,format);
|
|
|
}
|
|
|
|