1
0
mirror of https://github.com/strongdm/comply synced 2024-12-23 14:07:34 +00:00

Fixed date on generated PDFs (#52)

* Percent signs need to be escaped in Printf

* Update usage of ModifiedAt to fix date stamp on generated PDFs
This commit is contained in:
Justin Bodeutsch 2018-07-20 17:45:07 -07:00 committed by Justin McCarthy
parent 00b59ed620
commit cd89840164

View File

@ -108,7 +108,7 @@ func ReadNarratives() ([]*Document, error) {
}
n.Body = mdmd.body
n.FullPath = f.FullPath
n.ModifiedAt = f.Info.ModTime()
n.ModifiedAt = f.ModTime()
n.OutputFilename = fmt.Sprintf("%s-%s.pdf", config.Config().FilePrefix, n.Acronym)
narratives = append(narratives, n)
}
@ -133,7 +133,7 @@ func ReadProcedures() ([]*Procedure, error) {
}
p.Body = mdmd.body
p.FullPath = f.FullPath
p.ModifiedAt = f.Info.ModTime()
p.ModifiedAt = f.ModTime()
procedures = append(procedures, p)
}
@ -158,7 +158,7 @@ func ReadPolicies() ([]*Document, error) {
}
p.Body = mdmd.body
p.FullPath = f.FullPath
p.ModifiedAt = f.Info.ModTime()
p.ModifiedAt = f.ModTime()
p.OutputFilename = fmt.Sprintf("%s-%s.pdf", config.Config().FilePrefix, p.Acronym)
policies = append(policies, p)
}