Skip to content

Commit

Permalink
remove time.now from pptx
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Oct 15, 2024
1 parent 20acba1 commit 00945b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Binary file modified e2etests-cli/testdata/TestCLI_E2E/pptx-theme-overrides.exp.pptx
Binary file not shown.
4 changes: 0 additions & 4 deletions lib/pptx/pptx.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"image/png"
"os"
"text/template"
"time"
)

type BoardTitle struct {
Expand Down Expand Up @@ -226,15 +225,12 @@ func (p *Presentation) SaveTo(filePath string) error {
return err
}

dateTime := time.Now().Format(time.RFC3339)
err = addFileFromTemplate(zipWriter, "docProps/core.xml", CORE_XML, CoreXmlContent{
Creator: p.Creator,
Subject: p.Subject,
Description: p.Description,
LastModifiedBy: p.Creator,
Title: p.Title,
Created: dateTime,
Modified: dateTime,
})
if err != nil {
return err
Expand Down

0 comments on commit 00945b8

Please sign in to comment.