Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
time zone -> timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryFissionGames committed Oct 12, 2021
1 parent c87870a commit 25af759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operator/builtin/parser/syslog/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c SyslogParserConfig) Build(context operator.BuildContext) ([]operator.Ope

location, err := time.LoadLocation(c.Location)
if err != nil {
return nil, fmt.Errorf("failed to load location %s (is the time zone database installed?): %w", c.Location, err)
return nil, fmt.Errorf("failed to load location %s (is the timezone database installed?): %w", c.Location, err)
}

syslogParser := &SyslogParser{
Expand Down
4 changes: 2 additions & 2 deletions operator/helper/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (t *TimeParser) setLocation() error {
// If "location" is specified, it must be in the local timezone database
loc, err := time.LoadLocation(t.Location)
if err != nil {
return fmt.Errorf("failed to load location %s (is the time zone database installed?): %w", t.Location, err)
return fmt.Errorf("failed to load location %s (is the timezone database installed?): %w", t.Location, err)
}
t.location = loc
return nil
Expand Down Expand Up @@ -198,7 +198,7 @@ func (t *TimeParser) parseGotime(value interface{}) (time.Time, error) {
loc, locErr := time.LoadLocation(zone)
if locErr != nil {
// can't correct offset, just return what we have
return result, fmt.Errorf("failed to load location %s (is the time zone database installed?): %w", zone, locErr)
return result, fmt.Errorf("failed to load location %s (is the timezone database installed?): %w", zone, locErr)
}

// Reparse the timestamp, with the location
Expand Down

0 comments on commit 25af759

Please sign in to comment.