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:
Vishesh Handa
2020-06-09 18:23:43 +02:00
parent 9ba0bc831c
commit cd9d128b47
5 changed files with 8 additions and 8 deletions

View File

@ -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(),