diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index fe32077..d97b96f 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -111,7 +111,7 @@ module Api {}.tap do |hash| hash[:element] = params['element'] unless params['element'].blank? hash[:raid] = params['raid'] unless params['raid'].blank? - hash[:created_at] = start_time..now unless params['recency'].blank? + hash[:created_at] = start_time..DateTime.current unless params['recency'].blank? hash[:weapons_count] = 5..13 end end diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index c2ca040..121c721 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -89,7 +89,7 @@ module Api {}.tap do |hash| hash[:element] = params['element'] unless params['element'].blank? hash[:raid] = params['raid'] unless params['raid'].blank? - hash[:created_at] = start_time..now unless params['recency'].blank? + hash[:created_at] = start_time..DateTime.current unless params['recency'].blank? end end