-
Notifications
You must be signed in to change notification settings - Fork 14
Some times don't respect local format #292
Comments
This should be pretty easy to fix; I might ping you on the PR that fixes this so that you can take a look. |
The ones that are correct use clima/packages/clima_ui/lib/widgets/weather/additional_info_widget.dart Lines 110 to 112 in a652d03
These don't:
|
Huh, |
Something is weird; |
Yup, reading those docs it would seem that using But the places that do use |
|
From https://api.flutter.dev/flutter/intl/Intl/systemLocale.html:
Maybe this is it? |
Oh, nice find! |
So I guess it's a matter of calling that at startup, and the using clima/packages/clima_ui/lib/widgets/weather/additional_info_widget.dart Lines 110 to 112 in a652d03
|
Yeah, that sems like what we should do. I'm wondering now though about how to handle the system locale changing while the app is running. |
It doesn't seem the abstractions provided account for that ever happening. Edit: Maybe call |
Maybe, but I guess we can leave that to another PR? |
Yeah, that seems like another issue IMHO. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I tried to fix this yesterday, and it turned out to be more of a pain than I had expected, though it's mostly done. Due to locale stuff, fixing #91 first is probably a good idea. In any case, I'm going to submit a draft PR with my work on this issue. |
Describe the bug
I use 24hs time format, e.g.: without subtracting 12 after midday.
In a few spots, the application doesn't respect this and uses the am/pm time format.
Times that respect system locale
Times that DO NOT respect system locale
This last one is the really annoying one, since it makes reading the forecast a bit trickier.
Screenshots
Smartphone (please complete the following information):
Additional context
Thanks for the very beautiful and simple weather app! 🍻
The text was updated successfully, but these errors were encountered: