Skip to content
Snippets Groups Projects
Commit 1a1113f7 authored by Robert Speicher's avatar Robert Speicher
Browse files

Simplify `ContributionsCalendar#starting_year` and `#starting_month`

parent 4caf0433
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment