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

  • X iOS Support
  • X 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