convertTimeZone static method

String convertTimeZone()

Returns the current device's time zone offset as a string. Note: This might not be a reliable way to get a timezone name.

Implementation

// Future<String> getUserTimeZone() async {
//   final String currentTimeZone = await FlutterTimezone.getLocalTimezone();
//   return currentTimeZone;
// }

static String convertTimeZone() {
  var not = DateTime.now();
  return not.timeZoneOffset.toString();
  // myCustomLogStatements('d;fls;l ${not.timeZoneOffset}');
}