Skip to content

Commit 47c8292

Browse files
committed
Metadata times now both in local timezone
1 parent e49baff commit 47c8292

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/report/report.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ func loadMetadata(db *sql.DB) (*Metadata, error) {
142142
if strings.HasPrefix(organization, "OrgDummy") {
143143
organization = "<NONE>"
144144
}
145+
generated := time.Now()
146+
imported := endDate.In(generated.Location())
145147
return &Metadata{
146-
Imported: endDate,
147-
Generated: time.Now(),
148+
Imported: imported,
149+
Generated: generated,
148150
Account: accountID,
149151
Organization: organization,
150152
}, nil

0 commit comments

Comments
 (0)