support year/month/day format date

This commit is contained in:
MaysWind
2024-10-27 17:15:59 +08:00
parent 08bc0eff8c
commit 76f5f12563
2 changed files with 41 additions and 9 deletions
@@ -314,6 +314,12 @@ func (t *iifTransactionDataRowIterator) parseTransactionTime(dataset *iifTransac
day := dateParts[1]
year := dateParts[2]
if utils.IsValidYearMonthDayLongOrShortDateFormat(date) {
year = dateParts[0]
month = dateParts[1]
day = dateParts[2]
}
if len(month) < 2 {
month = "0" + month
}