Skip to content

Commit

Permalink
Update sbom/formatted_reader.go
Browse files Browse the repository at this point in the history
Co-authored-by: Frankie G-J <frankieg@vmware.com>
  • Loading branch information
ForestEckhardt and Frankie G-J committed Aug 4, 2022
1 parent aade3bb commit d8bc1a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sbom/formatted_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ func (f *FormattedReader) Read(b []byte) (int, error) {
}
if k == "creationInfo" {
creationInfo := spdxOutput["creationInfo"].(map[string]interface{})
creationInfo["created"] = time.Time{} // This is the zero-valued time

source_date_epoch := os.Getenv("SOURCE_DATE_EPOCH")
if source_date_epoch == "" {
creationInfo["created"] = time.Time{} // This is the zero-valued time
} else {
if source_date_epoch != "" {
sde, err := strconv.ParseInt(source_date_epoch, 10, 64)
if err != nil {
// not tested
Expand Down

0 comments on commit d8bc1a6

Please sign in to comment.