File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
lib/content_management/view Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
3
3
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
+ import 'package:intl/intl.dart' ;
6
7
import 'package:ht_dashboard/l10n/app_localizations.dart' ; // Corrected import
7
8
import 'package:ht_dashboard/l10n/l10n.dart' ;
8
9
import 'package:ht_dashboard/router/routes.dart' ;
@@ -171,7 +172,13 @@ class _HeadlinesDataSource extends DataTableSource {
171
172
DataCell (Text (headline.source? .name ?? l10n.unknown)),
172
173
DataCell (Text (headline.status.l10n (context))),
173
174
DataCell (
174
- Text (headline.updatedAt? .toLocal ().toString () ?? l10n.notAvailable),
175
+ Text (
176
+ headline.updatedAt != null
177
+ // TODO(fulleni): Make date format configurable by admin.
178
+ ? DateFormat ('dd-MM-yyyy' )
179
+ .format (headline.updatedAt! .toLocal ())
180
+ : l10n.notAvailable,
181
+ ),
175
182
),
176
183
DataCell (
177
184
Row (
You can’t perform that action at this time.
0 commit comments