mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: DateCardCellState date formatting (#3387)
* fix: DateCardCellState date formatting * refactor: use string interpolation
This commit is contained in:
committed by
GitHub
parent
c7af04b317
commit
aa25aa4474
@ -80,7 +80,11 @@ class DateCardCellState with _$DateCardCellState {
|
|||||||
String _dateStrFromCellData(DateCellDataPB? cellData) {
|
String _dateStrFromCellData(DateCellDataPB? cellData) {
|
||||||
String dateStr = "";
|
String dateStr = "";
|
||||||
if (cellData != null) {
|
if (cellData != null) {
|
||||||
dateStr = "${cellData.date} ${cellData.time}";
|
if (cellData.includeTime) {
|
||||||
|
dateStr = '${cellData.date} ${cellData.time}';
|
||||||
|
} else {
|
||||||
|
dateStr = cellData.date;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return dateStr;
|
return dateStr;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user