Skip to content

Commit

Permalink
Fix spdx date bug
Browse files Browse the repository at this point in the history
Fixes a bug where month and day where on the wrong
order in the SPDX document date.

Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
  • Loading branch information
puerco authored and justaugustus committed Nov 21, 2021
1 parent 9e70e0a commit 07a4d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/spdx/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (d *Document) Render() (doc string, err error) {
var buf bytes.Buffer
funcMap := template.FuncMap{
// The name "title" is what the function will be called in the template text.
"dateFormat": func(t time.Time) string { return t.UTC().Format("2006-02-01T15:04:05Z") },
"dateFormat": func(t time.Time) string { return t.UTC().Format("2006-01-02T15:04:05Z") },
}

if d.Name == "" {
Expand Down

0 comments on commit 07a4d4d

Please sign in to comment.