Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove time.now from pptx
Browse files Browse the repository at this point in the history
alixander committed Oct 15, 2024
1 parent 20acba1 commit 00945b8
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
@@ -17,7 +17,6 @@ import (
"image/png"
"os"
"text/template"
"time"
)

type BoardTitle struct {
@@ -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

0 comments on commit 00945b8

Please sign in to comment.