MainController#date_select_format? check params['timecop'] first 

I discovered that when you pass a date hash not using the timecop format to the update controller you get the following error:

NoMethodError: undefined method `[]' for nil:NilClass

Solution is to check first for the existence of params['timecop'] before getting into the nested hash.