Skip to content

Commit 1d1f426

Browse files
chrisbobbegnprice
authored andcommitted
msglist [nfc]: Remove a hard-coded 'en_US' which is the default
See the doc: https://pub.dev/documentation/intl/latest/intl/DateFormat-class.html > Formatting dates in the default 'en_US' format does not require > any initialization. (And we haven't been doing the described initialization for 'en_US' or any other locale; it's asynchronous, and we have a better plan for international formatting described in #45, using ffi.)
1 parent ddc9ade commit 1d1f426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,7 @@ enum MessageTimestampStyle {
20112011
return DateFormat.yMMMd().format(dateTime);
20122012
}
20132013
}
2014-
static final _timeOnlyFormat = DateFormat('h:mm aa', 'en_US');
2014+
static final _timeOnlyFormat = DateFormat('h:mm aa');
20152015
static final _lightboxFormat = DateFormat.yMMMd().add_Hms();
20162016
static final _fullFormat = DateFormat.yMMMd().add_jm();
20172017

0 commit comments

Comments
 (0)