Browse Source

:art: Export the database date field not support "time" export https://github.com/siyuan-note/siyuan/issues/11785

Daniel 1 year ago
parent
commit
62d443e0ee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      kernel/av/value.go

+ 2 - 2
kernel/av/value.go

@@ -498,7 +498,7 @@ func NewFormattedValueDate(content, content2 int64, format DateFormat, isNotTime
 			Content:          content,
 			Content:          content,
 			Content2:         content2,
 			Content2:         content2,
 			HasEndDate:       false,
 			HasEndDate:       false,
-			IsNotTime:        true,
+			IsNotTime:        isNotTime,
 			FormattedContent: formatted,
 			FormattedContent: formatted,
 		}
 		}
 		return
 		return
@@ -535,7 +535,7 @@ func NewFormattedValueDate(content, content2 int64, format DateFormat, isNotTime
 		IsNotEmpty:       true,
 		IsNotEmpty:       true,
 		IsNotEmpty2:      !content2Time.IsZero(),
 		IsNotEmpty2:      !content2Time.IsZero(),
 		HasEndDate:       hasEndDate,
 		HasEndDate:       hasEndDate,
-		IsNotTime:        true,
+		IsNotTime:        isNotTime,
 		FormattedContent: formatted,
 		FormattedContent: formatted,
 	}
 	}
 	return
 	return