QutEcoacoustics / baw-server

The acoustic workbench server for storing and managing ecoacoustic data. Manages the structure and audio data. Provides an API for clients access.
Apache License 2.0
9 stars 4 forks source link

A NoMethodError occurred in audio_events#download #645

Open atruskie opened 1 year ago

atruskie commented 1 year ago
A NoMethodError occurred in audio_events#download:

  undefined method `utc_offset' for nil:NilClass

    field_suffix_offset = TimeZoneHelper.offset_seconds_to_formatted(timezone_offset.utc_offset)
                                                                                    ^^^^^^^^^^^
  app/models/audio_event.rb:205:in `csv_query'
 app/controllers/audio_events_controller.rb:192:in `download'
  app/modules/include_controller.rb:684:in `set_then_reset_user_stamper'

 * Parameters :  {"selected_timezone_name"=>"perth", "format"=>"csv", "controller"=>"audio_events", "action"=>"download", "project_id"=>"1", "site_id"=>"357"}