Skip to content

ozayakcan/flutter_timezone_plus

 
 

Repository files navigation

flutter_timezone_plus

A fork of flutter_timezone works on windows and linux

Usage examples

Get the timezone

Current timezone:

// Returns null if timezone not found on windows or linux.
final String? currentTimeZone = await FlutterTimezone.getLocalTimezone();

All available timezones:

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

Reference

Wikipedia's list of TZ database names

Credits

https://pub.dev/packages/flutter_timezone

https://github.com/tjarvstrand/flutter_timezone

Packages

No packages published

Languages

  • C++ 69.6%
  • CMake 17.3%
  • Dart 3.7%
  • Ruby 2.9%
  • C 2.2%
  • Kotlin 1.5%
  • Other 2.8%