diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-27 13:07:46 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-16 14:22:17 +0300 |
commit | 18b361cf809251dd633e31d3dd6d877b31d8db7f (patch) | |
tree | 2569df180220a00852785e83d91f4e79bf6b7026 /lib/gitlab/contributions_calendar.rb | |
parent | 36fdbc6edb1c0884f68c1267902b33a78d7be6ae (diff) |
Group the contributing calendar by day
This aligns the boxes correctly with the day on the left side of the calendar
Diffstat (limited to 'lib/gitlab/contributions_calendar.rb')
-rw-r--r-- | lib/gitlab/contributions_calendar.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/contributions_calendar.rb b/lib/gitlab/contributions_calendar.rb index 85583dce9ee..9dc2602867e 100644 --- a/lib/gitlab/contributions_calendar.rb +++ b/lib/gitlab/contributions_calendar.rb @@ -19,7 +19,7 @@ module Gitlab select('date(created_at) as date, count(id) as total_amount'). map(&:attributes) - dates = (1.year.ago.to_date..(Date.today + 1.day)).to_a + dates = (1.year.ago.to_date..Date.today).to_a dates.each do |date| date_id = date.to_time.to_i.to_s |