Use RFC3339 timestamps in the results

This commit is contained in:
Oliver Bristow
2016-11-14 19:10:58 +00:00
parent 6d82ad32a9
commit cda69dc7f0
4 changed files with 4 additions and 6 deletions

View File

@@ -113,7 +113,7 @@ func (w AzureBlobWriter) upload(res models.ScanResult) (err error) {
if err != nil {
return err
}
timestr := time.Now().Format("20060102_1504")
timestr := time.Now().Format(time.RFC3339)
name := ""
if len(res.Container.ContainerID) == 0 {
name = fmt.Sprintf("%s/%s.json", timestr, res.ServerName)