From 012d736e253b6f75f524fec16cbe689add165af5 Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Sun, 6 Sep 2015 22:40:58 -0700 Subject: [PATCH] Fix digest end date to not overlap with the next digest period. Apparently the since/until repository timestamp limits denote a closed interval, so commits made at midnight would appear twice. Switch to setting the end date to being one second earlier. --- app/digest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/digest.go b/app/digest.go index 88724b7..90783ad 100644 --- a/app/digest.go +++ b/app/digest.go @@ -194,7 +194,7 @@ func newDigest(c appengine.Context, githubClient *github.Client, account *Accoun if account.Frequency == "weekly" { daysInDigest = 7 } - digestEndTime := digestStartTime.AddDate(0, 0, daysInDigest) + digestEndTime := digestStartTime.AddDate(0, 0, daysInDigest).Add(-time.Second) // Only look at repos that may have activity in the digest interval. var intervalRepos []*Repo