mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: add end date to time cell data (#3369)
* feat: add end date to time cell data * feat: implement ui for end time * test: add date to text test * chore: clippy warnings * fix: unexpected time parsing * fix: fix the date logic when toggling end date --------- Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
@ -331,7 +331,7 @@ impl<'a> TestRowBuilder<'a> {
|
||||
date: Some(data),
|
||||
time,
|
||||
include_time,
|
||||
clear_flag: None,
|
||||
..Default::default()
|
||||
})
|
||||
.unwrap();
|
||||
let date_field = self.field_with_type(field_type);
|
||||
|
@ -102,7 +102,10 @@ pub fn make_date_cell_string(timestamp: i64) -> String {
|
||||
serde_json::to_string(&DateCellChangeset {
|
||||
date: Some(timestamp),
|
||||
time: None,
|
||||
end_date: None,
|
||||
end_time: None,
|
||||
include_time: Some(false),
|
||||
is_range: Some(false),
|
||||
clear_flag: None,
|
||||
})
|
||||
.unwrap()
|
||||
|
Reference in New Issue
Block a user