diff --git a/lib/ui/community/community_views/community_page.dart b/lib/ui/community/community_views/community_page.dart index a006ddc4..8e95d8b6 100644 --- a/lib/ui/community/community_views/community_page.dart +++ b/lib/ui/community/community_views/community_page.dart @@ -16,6 +16,7 @@ import 'package:aku_new_community/ui/community/community_views/my_community_view import 'package:aku_new_community/ui/community/community_views/new_community_view.dart'; import 'package:aku_new_community/ui/community/community_views/topic/topic_community_view.dart'; import 'package:aku_new_community/ui/community/community_views/widgets/chat_card.dart'; +import 'package:aku_new_community/ui/home/public_infomation/public_infomation_card.dart'; import 'package:aku_new_community/ui/home/public_infomation/public_infomation_page.dart'; import 'package:aku_new_community/ui/home/public_infomation/public_information_detail_page.dart'; import 'package:aku_new_community/utils/headers.dart'; @@ -364,7 +365,7 @@ class _CommunityPageState extends State ), Spacer(), Text( - DateUtil.formatDateStr(item.createDate,format: 'MM-dd'), + RelativeDateFormat.format(item.createDate.toDate()), maxLines: 2, overflow: TextOverflow.ellipsis, style: TextStyle(