formatToDTOString method

String formatToDTOString({
  1. bool useZForUTC = true,
})

Implementation

String formatToDTOString({bool useZForUTC = true}) {
  final timeZone = timeZoneString(useZForUTC: useZForUTC);
  if (isUtc) {
    return toIso8601String().replaceAll('Z', timeZone);
  } else {
    return '${toIso8601String()}$timeZone';
  }
}