如果结束时间读取错误,不报错,由后续逻辑处理

This commit is contained in:
2025-02-19 10:28:28 +08:00
parent 253de366db
commit 9b8f61e8e1
3 changed files with 37 additions and 2 deletions

View File

@ -19,7 +19,7 @@ func ParseStartStopTime(filePath string, relativeDate time.Time) (time.Time, tim
}
stopTime, err := ParseTime(split[1], relativeDate)
if err != nil {
return time.Time{}, time.Time{}, err
return startTime, startTime, nil
}
return startTime, stopTime, nil
}