Skip to content

Commit a413746

Browse files
committed
fix: immediately show or hide time when includeTime changes
1 parent 2e60459 commit a413746

File tree

1 file changed

+1
-1
lines changed
  • frontend/rust-lib/flowy-grid/src/services/field/type_options/date_type_option

1 file changed

+1
-1
lines changed

frontend/rust-lib/flowy-grid/src/services/field/type_options/date_type_option/date_type_option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl DateTypeOptionPB {
5151
let date = format!("{}", utc.format_with_items(StrftimeItems::new(fmt)));
5252

5353
let mut time = "".to_string();
54-
if has_time {
54+
if has_time && self.include_time {
5555
let fmt = format!("{} {}", self.date_format.format_str(), self.time_format.format_str());
5656
time = format!("{}", utc.format_with_items(StrftimeItems::new(&fmt))).replace(&date, "");
5757
}

0 commit comments

Comments
 (0)