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:
- Open Visual Studio Installer
- Select Modify
- Select Windows SDK