Closed lanistor closed 2 years ago
Unhandled Exception: Location with the name "Asia/Calcutta" doesn't exist any solutions????
I was able to use deprecated locations by importing 'package:timezone/data/latest_all.dart'
instead of 'package:timezone/data/latest.dart'
.
Apologies for the late response. Both Asia/Chongqing and Asia/Calcutta are available in latest_all.
How do you call tz.getLocation(
while 'package:timezone/data/latest_all.dart'
only provides one function initializeTimeZones
?
Get location name by
flutter_native_timezone
:Users report the error (iPhone device), i get it's because the
tz.timeZoneDatabase.locations
doesn't containsAsia/Chongqing
the got byflutter_native_timezone
.What should i do to resolve it? I think there's a way: get nearest location of
Asia/Chongqing
, by for other locations, how to automaticlly map them?