Skip to content

Commit

Permalink
Fix 24 hour format
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwillian0 authored Jul 23, 2023
1 parent e6c2c94 commit ba0b193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/accessory/accessory_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/item_management/item_management.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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: () {
Expand Down

0 comments on commit ba0b193

Please sign in to comment.