File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
lib/content_management/view Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
44import 'package:go_router/go_router.dart' ;
55import 'package:ht_dashboard/content_management/bloc/content_management_bloc.dart' ;
66import 'package:ht_dashboard/l10n/app_localizations.dart' ;
7+ import 'package:intl/intl.dart' ;
78import 'package:ht_dashboard/l10n/l10n.dart' ;
89import 'package:ht_dashboard/router/routes.dart' ;
910import 'package:ht_dashboard/shared/constants/pagination_constants.dart' ;
@@ -162,7 +163,14 @@ class _CategoriesDataSource extends DataTableSource {
162163 cells: [
163164 DataCell (Text (category.name)),
164165 DataCell (Text (category.status.l10n (context))),
165- DataCell (Text (category.updatedAt? .toLocal ().toString () ?? l10n.notAvailable)),
166+ DataCell (
167+ Text (
168+ category.updatedAt != null
169+ // TODO(fulleni): Make date format configurable by admin.
170+ ? DateFormat ('dd-MM-yyyy' ).format (category.updatedAt! .toLocal ())
171+ : l10n.notAvailable,
172+ ),
173+ ),
166174 DataCell (
167175 Row (
168176 children: [
You can’t perform that action at this time.
0 commit comments