From ba0b19310c46e75c80334c97eb6b81428a90b6c1 Mon Sep 17 00:00:00 2001 From: Willian Wang Date: Sun, 23 Jul 2023 09:18:28 -0300 Subject: [PATCH] Fix 24 hour format --- lib/accessory/accessory_list_item.dart | 2 +- lib/item_management/item_management.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/accessory/accessory_list_item.dart b/lib/accessory/accessory_list_item.dart index 868cedb..efdb055 100644 --- a/lib/accessory/accessory_list_item.dart +++ b/lib/accessory/accessory_list_item.dart @@ -48,7 +48,7 @@ class AccessoryListItem extends StatelessWidget { } // Format published date in a human readable way String? dateString = accessory.datePublished != null - ? ' · ${DateFormat('dd.MM.yyyy kk:mm').format(accessory.datePublished!)}' + ? ' · ${DateFormat('dd.MM.yyyy HH:mm').format(accessory.datePublished!)}' : ''; return ListTile( onTap: onTap, diff --git a/lib/item_management/item_management.dart b/lib/item_management/item_management.dart index a490f95..f568697 100644 --- a/lib/item_management/item_management.dart +++ b/lib/item_management/item_management.dart @@ -30,7 +30,7 @@ class KeyManagement extends StatelessWidget { child: ListView( children: accessories.map((accessory) { String lastSeen = accessory.datePublished != null - ? DateFormat('dd.MM.yyyy kk:mm').format(accessory.datePublished!) + ? DateFormat('dd.MM.yyyy HH:mm').format(accessory.datePublished!) : 'Unknown'; return ListTile( onTap: () {