BigW Consortium Gitlab

Commit be77d76e by Mike Greiling

use timezone-aware Date.current instead of Date.today in ContributionsCalendar class

parent 68de3ac1
......@@ -48,7 +48,7 @@ module Gitlab
end
def starting_month
Date.today.month
Date.current.month
end
private
......@@ -66,7 +66,7 @@ module Gitlab
.select(:id)
conditions = t[:created_at].gteq(date_from.beginning_of_day)
.and(t[:created_at].lteq(Date.today.end_of_day))
.and(t[:created_at].lteq(Date.current.end_of_day))
.and(t[:author_id].eq(contributor.id))
Event.reorder(nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment