Skip to content

Commit aa4e06c

Browse files
committed
feat(headline-details): update date format in headline details page
- Change date format from 'MMM d, yyyy' to 'yyyy/MM/dd' for better internationalization support
1 parent a501570 commit aa4e06c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/headline-details/view/headline_details_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class _HeadlineDetailsPageState extends State<HeadlineDetailsPage> {
315315
padding: horizontalPadding.copyWith(top: AppSpacing.md),
316316
sliver: SliverToBoxAdapter(
317317
child: Text(
318-
DateFormat('MMM d, yyyy').format(headline.createdAt),
318+
DateFormat('yyyy/MM/dd').format(headline.createdAt),
319319
style: textTheme.bodyMedium?.copyWith(
320320
color: colorScheme.onSurfaceVariant.withOpacity(0.7),
321321
),

0 commit comments

Comments
 (0)