提交 be77d76e 编写于 作者: M Mike Greiling

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册