|
@@ -574,7 +574,7 @@ func (table *Table) calcColDate(col *TableColumn, colIndex int) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if 0 != earliest {
|
|
if 0 != earliest {
|
|
- col.Calc.Result = &Value{Date: NewFormattedValueDate(earliest, DateFormatNone)}
|
|
|
|
|
|
+ col.Calc.Result = &Value{Date: NewFormattedValueDate(earliest, 0, DateFormatNone)}
|
|
}
|
|
}
|
|
case CalcOperatorLatest:
|
|
case CalcOperatorLatest:
|
|
latest := int64(0)
|
|
latest := int64(0)
|
|
@@ -586,7 +586,7 @@ func (table *Table) calcColDate(col *TableColumn, colIndex int) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if 0 != latest {
|
|
if 0 != latest {
|
|
- col.Calc.Result = &Value{Date: NewFormattedValueDate(latest, DateFormatNone)}
|
|
|
|
|
|
+ col.Calc.Result = &Value{Date: NewFormattedValueDate(latest, 0, DateFormatNone)}
|
|
}
|
|
}
|
|
case CalcOperatorRange:
|
|
case CalcOperatorRange:
|
|
earliest := int64(0)
|
|
earliest := int64(0)
|
|
@@ -602,7 +602,7 @@ func (table *Table) calcColDate(col *TableColumn, colIndex int) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if 0 != earliest && 0 != latest {
|
|
if 0 != earliest && 0 != latest {
|
|
- col.Calc.Result = &Value{Date: NewFormattedValueDate(latest-earliest, DateFormatNone)}
|
|
|
|
|
|
+ col.Calc.Result = &Value{Date: NewFormattedValueDate(earliest, latest, DateFormatDuration)}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|