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';
4
4
import 'package:go_router/go_router.dart' ;
5
5
import 'package:ht_dashboard/content_management/bloc/content_management_bloc.dart' ;
6
6
import 'package:ht_dashboard/l10n/app_localizations.dart' ;
7
+ import 'package:intl/intl.dart' ;
7
8
import 'package:ht_dashboard/l10n/l10n.dart' ;
8
9
import 'package:ht_dashboard/router/routes.dart' ;
9
10
import 'package:ht_dashboard/shared/constants/pagination_constants.dart' ;
@@ -162,7 +163,14 @@ class _CategoriesDataSource extends DataTableSource {
162
163
cells: [
163
164
DataCell (Text (category.name)),
164
165
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
+ ),
166
174
DataCell (
167
175
Row (
168
176
children: [
You can’t perform that action at this time.
0 commit comments