Skip to content

Commit

Permalink
Use epoch time to count lead time for changes of initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiyado committed Jan 1, 2023
1 parent bf78f33 commit 875eb1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/core/query_releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ func getIsRestoredAndLeadTimeForChangesByLocalGit(
option *Option,
) (isRestored bool, leadTimeForChanges time.Duration) {
source := sources[i]
since := "1900-01-01"
// Epoch time
since := "1970-01-01T00:00:00+0000"
if i < len(sources)-1 {
preReleaseCommit := sources[i+1].commit
since = preReleaseCommit.Committer.When.Add(time.Second).Format("2006-01-02T15:04:05")
Expand Down

0 comments on commit 875eb1e

Please sign in to comment.