diff --git a/internal/cmd/config/config.go b/internal/cmd/config/config.go index 638e6d8438..522f6ceca0 100644 --- a/internal/cmd/config/config.go +++ b/internal/cmd/config/config.go @@ -476,7 +476,7 @@ func parseEventing(eventObj *ast.ObjectItem) (*event.EventerConfig, error) { // parse the duration string specified in a file config into a time.Duration if s.FileConfig != nil && s.FileConfig.RotateDurationHCL != "" { var err error - s.FileConfig.RotateDuration, err = time.ParseDuration(s.FileConfig.RotateDurationHCL) + s.FileConfig.RotateDuration, err = parseutil.ParseDurationSecond(s.FileConfig.RotateDurationHCL) if err != nil { return nil, fmt.Errorf("can't parse rotation duration %s", s.FileConfig.RotateDurationHCL) }