🎨 Add specific time switch to database date field https://github.com/siyuan-note/siyuan/issues/9486

This commit is contained in:
Daniel 2023-10-27 21:16:54 +08:00
parent ee50814189
commit eb80232771
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 27 additions and 7 deletions

View file

@ -1946,7 +1946,7 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,
if nil != cell.Value {
if av.KeyTypeDate == cell.Value.Type {
if nil != cell.Value.Date {
cell.Value.Date = av.NewFormattedValueDate(cell.Value.Date.Content, cell.Value.Date.Content2, av.DateFormatNone)
cell.Value.Date = av.NewFormattedValueDate(cell.Value.Date.Content, cell.Value.Date.Content2, av.DateFormatNone, cell.Value.Date.IsNotTime)
}
} else if av.KeyTypeCreated == cell.Value.Type {
if nil != cell.Value.Created {