Commit 1a1113f7 authored by Robert Speicher's avatar Robert Speicher

Simplify `ContributionsCalendar#starting_year` and `#starting_month`

parent 4caf0433
......@@ -45,11 +45,11 @@ module Gitlab
end
def starting_year
(Time.now - 1.year).strftime("%Y")
1.year.ago.year
end
def starting_month
Date.today.strftime("%m").to_i
Date.today.month
end
end
end
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