fixed ad isBefore

This commit is contained in:
Kima
2023-09-05 21:55:51 +02:00
parent 4d501fed3e
commit bbbaea9224
4 changed files with 19 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ List<DateWidget> getWidgets(List<Ad> providerAds) {
if (providerAds.isNotEmpty) {
for (var ad in providerAds) {
if (ad.date.isAfter(DateTime.now())) {
if (ad.date.isBefore(DateTime.now())) {
providerAds.sort((a, b) => -a.date.compareTo(b.date));
items.add(DateWidget(