Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocationNotFoundException: Location with the name "Etc/GMT-1" doesn't exist #57

Open
AnasElbattra opened this issue Jul 21, 2023 · 2 comments

Comments

@AnasElbattra
Copy link

AnasElbattra commented Jul 21, 2023

The problem

  • There are some time_zone_names that are deprecated
  • This problem with mobile

Suggest

  • There are the new time zone names. can you check this
  • I highlighted the name that gives me LocationNotFoundException

'Asia/Aden': 'Asia/Aden',
'America/Cuiaba': 'America/Cuiaba',
'Etc/GMT+9': 'Asia/Vladivostok',
'Etc/GMT+8': 'Asia/Shanghai',
'Africa/Nairobi': 'Africa/Nairobi',
'America/Marigot': 'America/Marigot',
'Asia/Aqtau': 'Asia/Aqtau',
'Pacific/Kwajalein': 'Pacific/Kwajalein',
'America/El_Salvador': 'America/El_Salvador',
'Asia/Pontianak': 'Asia/Pontianak',
'Africa/Cairo': 'Africa/Cairo',
'Pacific/Pago_Pago': 'Pacific/Pago_Pago',
'Africa/Mbabane': 'Africa/Mbabane',
'Asia/Kuching': "Asia/Kuching",
'Pacific/Honolulu': "Pacific/Honolulu",
'Pacific/Rarotonga': "Pacific/Rarotonga",
"America/Guatemala": "America/Guatemala",
"Australia/Hobart": "Australia/Hobart",
"Europe/London": "Europe/London",
"America/Belize": "America/Belize",
"America/Panama": "America/Panama",
"Asia/Chungking": "Asia/Shanghai",
"America/Managua": "America/Managua",
"America/Indiana/Petersburg": "America/Indiana/Petersburg",
"Asia/Yerevan": "Asia/Yerevan",
"Europe/Brussels": "Europe/Brussels",
"JST": "Asia/Tokyo",
"GMT": "Europe/London",
"Europe/Warsaw": "Europe/Warsaw",
"America/Chicago": "America/Chicago",
"Asia/Kashgar": "Asia/Urumqi",
"Chile/Continental": "America/Santiago",
"Pacific/Yap": "Pacific/Chuuk",
"CET": "Europe/Paris",
"Etc/GMT-1": "Europe/Lisbon",
"Etc/GMT-0": "UTC",
"Europe/Jersey": "Europe/London", "America/Tegucigalpa": "America/Tegucigalpa",
"Etc/GMT-5": "America/New_York", "Europe/Istanbul": "Europe/Istanbul",
"America/Eirunepe": "America/Eirunepe",
"Etc/GMT-4": "America/Port_of_Spain", "America/Miquelon": "America/Miquelon",
"Etc/GMT-3": "Europe/Istanbul", "Europe/Luxembourg": "Europe/Luxembourg",
"Etc/GMT-2": "Europe/Zaporozhye", "Etc/GMT-9": "Asia/Seoul",
"America/Argentina/Catamarca": "America/Argentina/Tucuman",
"Etc/GMT-8": "Asia/Shanghai", "Etc/GMT-7": "Asia/Bangkok",
"Etc/GMT-6": "America/Guatemala", "Europe/Zaporozhye": "Europe/Zaporozhye",
"Canada/Yukon": "America/Whitehorse",
"Canada/Atlantic": "America/Halifax",
"Atlantic/St_Helena": "Atlantic/St_Helena",
"Australia/Tasmania": "Australia/Hobart",
"Libya": "Africa/Tripoli",
"Europe/Guernsey": "Europe/London",
"America/Grand_Turk": "America/Grand_Turk",
"US/Pacific-New": "America/Los_Angeles",
"Asia/Samarkand": "Asia/Samarkand",
"America/Argentina/Cordoba": "America/Argentina/Cordoba",
"Asia/Phnom_Penh": "Asia/Phnom_Penh",
"IST": "Asia/Kolkata",
"Africa/Kigali": "Africa/Kigali",
"Asia/Almaty": "Asia/Almaty"

@tjarvstrand
Copy link

tjarvstrand commented Jul 24, 2023

Hi @AnasElbattra,

This is not an issue with flutter_native_timezone as it doesn't contain it's own timezone database. It only provides access to the timezones reported by the underlying platform.

@tjarvstrand
Copy link

Oh, and BTW, flutter_native_timezone has pretty much been abandoned for almost two years. Consider switching to flutter_timezone, which is a fork of this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants