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 1ac500e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions ci/release/changelogs/next.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Lib: removes a dependency on external slog that was causing troubles with installation [#2137](https://github.com/terrastruct/d2/pull/2137)
- CLI: attempts writing to path atomically, falling back to non-atomic if failed [#2141](https://github.com/terrastruct/d2/pull/2141)
- Export: pptx has "created at" metadata removed, so successive runs yield the same result [#2169](https://github.com/terrastruct/d2/pull/2160)

#### Bugfixes ⛑️

Expand Down
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 1ac500e

Please sign in to comment.