handleTimeZone static method

Future<void> handleTimeZone()

Implementation

static Future<void> handleTimeZone() async {
  initializeTimeZones();
  final String locationName = await FlutterTimezone.getLocalTimezone();
  final Location location = getLocation(locationName);
  setLocalLocation(location);
}