mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-18 18:33:49 +02:00
Merge pull request #5 from Iconica-Development/hotfix/date-format
Remove the '-' between date and time when formatting dates
This commit is contained in:
commit
676988bfd1
1 changed files with 1 additions and 3 deletions
|
@ -28,8 +28,6 @@ class DateFormatter {
|
|||
bool showFullDate = false,
|
||||
}) =>
|
||||
DateFormat(
|
||||
_isToday(date)
|
||||
? 'HH:mm'
|
||||
: 'dd-MM-yyyy${showFullDate ? ' - HH:mm' : ''}',
|
||||
_isToday(date) ? 'HH:mm' : 'dd-MM-yyyy${showFullDate ? ' HH:mm' : ''}',
|
||||
).format(date);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue