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';
33import 'package:flutter_bloc/flutter_bloc.dart' ;
44import 'package:go_router/go_router.dart' ;
55import 'package:ht_dashboard/content_management/bloc/content_management_bloc.dart' ;
6+ import 'package:intl/intl.dart' ;
67import 'package:ht_dashboard/l10n/app_localizations.dart' ; // Corrected import
78import 'package:ht_dashboard/l10n/l10n.dart' ;
89import 'package:ht_dashboard/router/routes.dart' ;
@@ -171,7 +172,13 @@ class _HeadlinesDataSource extends DataTableSource {
171172 DataCell (Text (headline.source? .name ?? l10n.unknown)),
172173 DataCell (Text (headline.status.l10n (context))),
173174 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+ ),
175182 ),
176183 DataCell (
177184 Row (
You can’t perform that action at this time.
0 commit comments