Skip to content

Commit 50917d6

Browse files
authored
fix generator issue tool (Azure#22897)
* fix parse time * use time * revert * fix
1 parent e72057b commit 50917d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/tools/generator/cmd/issue/request/request.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ func NewReleaseRequestIssue(issue github.Issue) (*ReleaseRequestIssue, error) {
107107
})
108108

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

0 commit comments

Comments
 (0)