Dates should not default to US-style M/D/Y #138
Labels
No Label
android
arch
backlog
blocked-on-external
bug
bugbash
component/bindings
component/bine
component/connectivity
component/cwtch
component/tapir
component/ui
cwtch-1.14
cwtch-1.15
cwtch-beta-1.1
cwtch-beta-1.10
cwtch-beta-1.11
cwtch-beta-1.12
cwtch-beta-1.13
cwtch-beta-1.2
cwtch-beta-1.3
cwtch-beta-1.4
cwtch-beta-1.5
cwtch-beta-1.5.x
cwtch-beta-1.6
cwtch-beta-1.7
cwtch-beta-1.8
cwtch-beta-1.9
design
duplicate
enhancement
flutter
funding-needed
help wanted
hybrid-groups
in-nightly
in-progress
invalid
ios
linux
mac
need-replication-or-investigation
ops
packaging
post-stable
question
questionable
requires-more-effort-than-we-can-spare
rust
scheduled
stable-blocker
tails
testing-needed
tests
tor
waiting-on-fix-confirmation
waiting-on-new-flutter-feature
whonix
windows
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch-ui#138
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In particular I would suggest that dates be internally stored in ISO-8601 format, in UTC, and then switched "at the last possible moment" to whatever time zone and date format (mm/dd/yyyy, dd/mm/yyyy, et al.) the user has chosen in their OS
This is already the case.
The main issue seems to be that the flutter API doesn't take locale into account.
The actual code we use to format dates is:
DateFormat.yMd().add_jm().format(messageDate.toLocal());
Which calls the Flutter internal formatting function, which seems incomplete in regards to locale.
There is probably a way around this, but this might also just get fixed as flutter matures.
If I read this correctly, we need to call
initializeDateFormatting()
with the user's preferred locale and then Flutter will use that locale for furtherDateFormat
method calls