This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

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

Simplify `ContributionsCalendar#starting_year` and `#starting_month`

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