1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Fix datetime format (#174)

* #173
This commit is contained in:
Fadi Abbud 2022-06-10 10:57:08 +02:00 committed by GitHub
parent 5ca768b5e2
commit 714814a44b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,7 @@ func (p *processor) full() error {
canonicalURL := csaf.AggregatorURL(
p.cfg.Domain + "/.well-known/csaf-aggregator/aggregator.json")
lastUpdated := csaf.TimeStamp(time.Now())
lastUpdated := csaf.TimeStamp(time.Now().UTC())
agg := csaf.Aggregator{
Aggregator: &p.cfg.Aggregator,

View file

@ -195,7 +195,7 @@ func (w *worker) writeROLIE(label string, summaries []summary) error {
Scheme: "urn:ietf:params:rolie:category:information-type",
Term: "csaf",
}},
Updated: csaf.TimeStamp(time.Now()),
Updated: csaf.TimeStamp(time.Now().UTC()),
Entry: entries,
},
}

View file

@ -239,7 +239,7 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
}
}
rolie.Feed.Updated = csaf.TimeStamp(time.Now())
rolie.Feed.Updated = csaf.TimeStamp(time.Now().UTC())
year := strconv.Itoa(ex.InitialReleaseDate.Year())