From cd89840164ee8044a81d1627e2a1707f7141b3f6 Mon Sep 17 00:00:00 2001 From: Justin Bodeutsch Date: Fri, 20 Jul 2018 17:45:07 -0700 Subject: [PATCH] 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 --- internal/model/fs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/model/fs.go b/internal/model/fs.go index cdf2693..3da7d63 100644 --- a/internal/model/fs.go +++ b/internal/model/fs.go @@ -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) }