mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-26 02:30:00 +08:00
Workaround intl bug by harding 'en' locale
https://github.com/dart-lang/intl/issues/266 This is strange since Intl.getLocale() returns 'en_US' in my case. Currently, GitJournal only supports 'english' anyway, so this shouldn't be a big problem.
This commit is contained in:
@ -12,8 +12,8 @@ class JournalEditorHeader extends StatelessWidget {
|
||||
if (note.created == null) {
|
||||
return Container();
|
||||
}
|
||||
var dateStr = DateFormat('MMMM, yyyy').format(note.created);
|
||||
var timeStr = DateFormat('EEEE HH:mm').format(note.created);
|
||||
var dateStr = DateFormat('MMMM, yyyy', 'en').format(note.created);
|
||||
var timeStr = DateFormat('EEEE HH:mm', 'en').format(note.created);
|
||||
|
||||
var bigNum = Text(
|
||||
note.created.day.toString(),
|
||||
|
Reference in New Issue
Block a user