Closed armandojimenez closed 2 years ago
Same issue
Still with the same issue, I added a try/catch and assign "Accra/Africa" if an error occurs
I use this, works good, but this error only occurs to me in Apple Sillicon Android Emulator
`
static Future
`
Hiho, I'm getting some crashes with this, in my case I get these:
Location with the name "Asia/Yangon" doesn't exist
Location with the name "America/Buenos_Aires" doesn't exist
Location with the name "Europe/Saratov" doesn't exist
Location with the name "Asia/Calcutta" doesn't exist
Location with the name "GMT" doesn't exist
Location with the name "Etc/GMT+3" doesn't exist
did you try using:
import 'package:timezone/data/latest_all.dart' as tz;
in stead of
import 'package:timezone/data/latest.dart' as tz;
did you try using:
import 'package:timezone/data/latest_all.dart' as tz;
in stead ofimport 'package:timezone/data/latest.dart' as tz;
Thank you ! It worked !
With latest_all
, "Asia/Yangon", "America/Buenos_Aires", "Etc/GMT" etc... work fine.
But "GMT" still throws for me. "Etc/GMT" seems like a good enough workaround in a try/catch.
With
latest_all
, "Asia/Yangon", "America/Buenos_Aires", "Etc/GMT" etc... work fine.But "GMT" still throws for me. "Etc/GMT" seems like a good enough workaround in a try/catch.
can i see your try/catch code? i am also getting "[LocationNotFoundException (Location with the name "GMT" doesn't exist)]" error on my flutter app
Duplicate of https://github.com/srawlins/timezone/issues/80; we need to add recognized aliases, like GMT
.
i'm having this problem but. it's work :
Future
How do I deal with this? I'm getting this on an Android Emulator
LocationNotFoundException (Location with the name "GMT" doesn't exist)