Skip to content

Commit ba0b193

Browse files
authored
Fix 24 hour format
1 parent e6c2c94 commit ba0b193

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/accessory/accessory_list_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class AccessoryListItem extends StatelessWidget {
4848
}
4949
// Format published date in a human readable way
5050
String? dateString = accessory.datePublished != null
51-
? ' · ${DateFormat('dd.MM.yyyy kk:mm').format(accessory.datePublished!)}'
51+
? ' · ${DateFormat('dd.MM.yyyy HH:mm').format(accessory.datePublished!)}'
5252
: '';
5353
return ListTile(
5454
onTap: onTap,

lib/item_management/item_management.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class KeyManagement extends StatelessWidget {
3030
child: ListView(
3131
children: accessories.map((accessory) {
3232
String lastSeen = accessory.datePublished != null
33-
? DateFormat('dd.MM.yyyy kk:mm').format(accessory.datePublished!)
33+
? DateFormat('dd.MM.yyyy HH:mm').format(accessory.datePublished!)
3434
: 'Unknown';
3535
return ListTile(
3636
onTap: () {

0 commit comments

Comments
 (0)