Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: DateCardCellState date formatting (#3387)
Vincenzo De Petrisaa25aa44740e
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/bloc/date_card_cell_bloc.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/bloc/date_card_cell_bloc.dartindex 40ddc24438..226710be06 100644--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/bloc/date_card_cell_bloc.dart+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/bloc/date_card_cell_bloc.dart@@ -80,7 +80,11 @@ class DateCardCellState with _$DateCardCellState {String _dateStrFromCellData(DateCellDataPB? cellData) {String dateStr = "";if (cellData != null) {- dateStr = "${cellData.date} ${cellData.time}";+ if (cellData.includeTime) {+ dateStr = '${cellData.date} ${cellData.time}';+ } else {+ dateStr = cellData.date;+ }}return dateStr;}