Skip to content

Commit

Permalink
formatting time to RFC 3339 for report
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Feb 26, 2024
1 parent c7a9eb9 commit 7dcd9a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func runGitHistoryReport(gitPath, filePath string, latest bool,
GitRepoPath: gitPath,
GitFilePath: filePath,
Filename: path.Base(filePath),
DateGenerated: time.Now().String(),
DateGenerated: time.Now().Format(time.RFC3339),
Reports: changeReports,
}, nil

Expand Down Expand Up @@ -306,7 +306,7 @@ func runGithubHistoryReport(username, repo, filePath string, latest bool, limit
GitRepoPath: fmt.Sprintf("%s/%s", username, repo),
GitFilePath: filePath,
Filename: path.Base(filePath),
DateGenerated: time.Now().String(),
DateGenerated: time.Now().Format(time.RFC3339),
Reports: ghReports,
}, nil

Expand Down

0 comments on commit 7dcd9a6

Please sign in to comment.