Skip to content

Commit

Permalink
go 1.18 で利用できない日付フォーマットを置き換え
Browse files Browse the repository at this point in the history
  • Loading branch information
kumak1 committed Mar 29, 2023
1 parent 021dcf3 commit 3c936d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func formatIndex(index string) string {

func formatDate(date string) string {
t, _ := time.Parse(time.RFC3339, date)
return color.WhiteString(t.Format(time.DateOnly))
return color.WhiteString(t.Format("2006-01-02"))
}

func formatSeverity(severity string) string {
Expand Down

0 comments on commit 3c936d0

Please sign in to comment.