device_timezone 1.0.0 copy "device_timezone: ^1.0.0" to clipboard
device_timezone: ^1.0.0 copied to clipboard

A flutter plugin for getting the local timezone of the device.

device_timezone #

A flutter plugin for getting the local timezone of the OS.

This is an updated version of the flutter_timezone project to include Windows support.

Getting Started #

Get the timezone #

final String? currentTimeZone = await DeviceTimezone.getLocalTimezone();

Get all available timezones #

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

Windows #

Update Visual Studio to the latest version for using C++ 20.

💡 If you can't compile

Try downloading a latest Windows SDK:

  1. Open Visual Studio Installer
  2. Select Modify
  3. Select Windows SDK
1
likes
140
points
50
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter plugin for getting the local timezone of the device.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, js, plugin_platform_interface

More

Packages that depend on device_timezone