utfToLocalDateTime static method

String utfToLocalDateTime(
  1. String date
)

Implementation

static String utfToLocalDateTime(String date) {
  if (date.isEmpty) return '';
  var dateTime = DateFormat("yyyy-MM-dd'T'HH:mm:ss").parse(date, true);
  return formatDateTimeToDate(dateTime.toLocal());
}