chore: date with utc

This commit is contained in:
appflowy
2022-11-14 12:03:22 +08:00
parent 6aba344583
commit 0e137f12f5
15 changed files with 114 additions and 94 deletions

View File

@ -2,7 +2,7 @@ use flowy_grid::entities::FieldType;
use std::sync::Arc;
use flowy_grid::services::field::{
DateCellChangesetPB, MultiSelectTypeOptionPB, SelectOptionPB, SingleSelectTypeOptionPB,
DateCellChangeset, MultiSelectTypeOptionPB, SelectOptionPB, SingleSelectTypeOptionPB,
};
use flowy_grid::services::row::RowRevisionBuilder;
use grid_rev_model::{FieldRevision, RowRevision};
@ -38,7 +38,7 @@ impl<'a> GridRowTestBuilder<'a> {
}
pub fn insert_date_cell(&mut self, data: &str) -> String {
let value = serde_json::to_string(&DateCellChangesetPB {
let value = serde_json::to_string(&DateCellChangeset {
date: Some(data.to_string()),
time: None,
})

View File

@ -55,7 +55,7 @@ pub fn create_single_select_field(grid_id: &str) -> (CreateFieldParams, FieldRev
// The grid will contains all existing field types and there are three empty rows in this grid.
pub fn make_date_cell_string(s: &str) -> String {
serde_json::to_string(&DateCellChangesetPB {
serde_json::to_string(&DateCellChangeset {
date: Some(s.to_string()),
time: None,
})