Skip to content

Commit

Permalink
fix generator issue tool (Azure#22897)
Browse files Browse the repository at this point in the history
* fix parse time

* use time

* revert

* fix
  • Loading branch information
Alancere authored May 31, 2024
1 parent e72057b commit 50917d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/tools/generator/cmd/issue/request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ func NewReleaseRequestIssue(issue github.Issue) (*ReleaseRequestIssue, error) {
})

// get release date
targetDate := regexp.MustCompile(`\d*-\d*-\d*`).FindString(contents[releaseDateKeyword])
releaseDate, err := time.Parse("2006-01-02", targetDate)
targetDate := regexp.MustCompile(`\d+\/\d+\/\d+`).FindString(contents[releaseDateKeyword])
releaseDate, err := time.Parse("1/2/2006", targetDate)
if err != nil {
releaseDate = time.Now()
}
Expand Down

0 comments on commit 50917d6

Please sign in to comment.