File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
lib/content_management/view Expand file tree Collapse file tree 1 file changed +7
-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/content_management/bloc/edit_source/edit_source_bloc.dart' ;
7
+ import 'package:intl/intl.dart' ;
7
8
import 'package:ht_dashboard/l10n/app_localizations.dart' ;
8
9
import 'package:ht_dashboard/shared/extensions/content_status_l10n.dart' ;
9
10
import 'package:ht_dashboard/l10n/l10n.dart' ;
@@ -170,7 +171,12 @@ class _SourcesDataSource extends DataTableSource {
170
171
DataCell (Text (source.sourceType? .localizedName (l10n) ?? l10n.unknown)),
171
172
DataCell (Text (source.status.l10n (context))),
172
173
DataCell (
173
- Text (source.updatedAt? .toLocal ().toString () ?? l10n.notAvailable),
174
+ Text (
175
+ source.updatedAt != null
176
+ // TODO(fulleni): Make date format configurable by admin.
177
+ ? DateFormat ('dd-MM-yyyy' ).format (source.updatedAt! .toLocal ())
178
+ : l10n.notAvailable,
179
+ ),
174
180
),
175
181
DataCell (
176
182
Row (
You can’t perform that action at this time.
0 commit comments