2022-08-23 13:00:54 -07:00
|
|
|
class HomeController < ApplicationController
|
|
|
|
|
|
|
|
|
|
def index
|
2022-08-23 14:51:20 -07:00
|
|
|
Time.zone = 'Pacific Time (US & Canada)'
|
|
|
|
|
@year = params['year'].nil? ? Date.today.year : params['year'].to_i
|
2025-07-02 09:33:52 -07:00
|
|
|
@events = CalendarService.new.events + CalendarService.new.vacations
|
2022-08-23 13:00:54 -07:00
|
|
|
end
|
|
|
|
|
end
|