Remove the '-' between date and time when formatting dates

This commit is contained in:
Bart Ribbers 2022-12-21 17:10:47 +01:00
parent dbb2ffb708
commit 0898935345

View file

@ -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);
}