Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parsing.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func tryParseTime(candidate string) (time.Time, bool) {
}
}

return time.Now(), false
return ret, false
}

func tryParseExactTime(candidate string, format string) (time.Time, bool) {
Expand All @@ -510,7 +510,7 @@ func tryParseExactTime(candidate string, format string) (time.Time, bool) {

ret, err = time.ParseInLocation(format, candidate, time.Local)
if err != nil {
return time.Now(), false
return ret, false
}

return ret, true
Expand Down