 <span class="ruby-identifier">check_and_set_query_date</span> 
  <span class="ruby-identifier">start_date</span> = <span class="ruby-identifier">session</span>[<span class="ruby-value">:start_time</span>].<span class="ruby-identifier">strftime</span>(<span class="ruby-string">&quot;%Y-%m-%d&quot;</span>)<span class="ruby-operator">+</span><span class="ruby-string">&quot; 00:00:00&quot;</span>
  <span class="ruby-identifier">end_date</span> = <span class="ruby-identifier">session</span>[<span class="ruby-va