my_timezone 0.0.1+4 copy "my_timezone: ^0.0.1+4" to clipboard
my_timezone: ^0.0.1+4 copied to clipboard

A flutter plugin for getting the local timezone of the device on Android, ios, macos.

GitHub Buy Me A Coffee PayPal Sponsor Support Me on Ko-fi

My Timezone #

A flutter plugin for getting the local timezone of the Ios, Macos and Android.

Installation #

Add following dependency in pubspec.yaml file:

my_timezone: ^last_version

Then, run

$ flutter pub get 

Features #

  • ✅ iOS Support
  • ✅ Android Support

Usage #

Get the timezone

import 'package:my_timezone/my_timezone.dart';


final String currentTimeZone = await MyTimezone.getLocalTimezone();

final List<String> availableTimezones = await MyTimezone.getAvailableTimezones();

Developer Team: #

Any comments please contact us ThaoDoan and DucNguyen