mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 14:39:50 +08:00
🐛 Database rollup calculation range anomaly https://github.com/siyuan-note/siyuan/issues/10913
This commit is contained in:
parent
2bbd1a89d0
commit
49e62ebff5
@ -501,9 +501,9 @@ func NewFormattedValueDate(content, content2 int64, format DateFormat, isNotTime
|
|||||||
formatted = contentTime.Format("2006-01-02 15:04")
|
formatted = contentTime.Format("2006-01-02 15:04")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
content2Time := time.UnixMilli(content2)
|
||||||
if hasEndDate {
|
if hasEndDate {
|
||||||
var formattedContent2 string
|
var formattedContent2 string
|
||||||
content2Time := time.UnixMilli(content2)
|
|
||||||
if isNotTime {
|
if isNotTime {
|
||||||
formattedContent2 = content2Time.Format("2006-01-02")
|
formattedContent2 = content2Time.Format("2006-01-02")
|
||||||
} else {
|
} else {
|
||||||
@ -523,6 +523,8 @@ func NewFormattedValueDate(content, content2 int64, format DateFormat, isNotTime
|
|||||||
ret = &ValueDate{
|
ret = &ValueDate{
|
||||||
Content: content,
|
Content: content,
|
||||||
Content2: content2,
|
Content2: content2,
|
||||||
|
IsNotEmpty: true,
|
||||||
|
IsNotEmpty2: !content2Time.IsZero(),
|
||||||
HasEndDate: hasEndDate,
|
HasEndDate: hasEndDate,
|
||||||
IsNotTime: true,
|
IsNotTime: true,
|
||||||
FormattedContent: formatted,
|
FormattedContent: formatted,
|
||||||
|
Loading…
Reference in New Issue
Block a user