# Bug COSTS-191 - NoMethodError in  TimeEntriesController#update

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-191

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Time tracking |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Klaus Zanders |
| Product manager |  |
| Developers | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Logs**

```text
undefined method 'time_zone' for nil
BACKTRACE

Application backtrace

Full backtrace
modules/costs/app/components/time_entries/days_and_hours_form.rb:96 TimeEntries::DaysAndHoursForm#start_time_in_local_time
modules/costs/app/components/time_entries/days_and_hours_form.rb:52 block (2 levels) in <class:DaysAndHoursForm>
modules/costs/app/components/time_entries/days_and_hours_form.rb:47 block in <class:DaysAndHoursForm>
modules/costs/app/components/time_entries/time_entry_form_component.html.erb:40 block (4 levels) in TimeEntries::TimeEntryFormComponent#call
app/components/op_primer/component_helpers.rb:34 OpPrimer::ComponentHelpers#flex_layout
modules/costs/app/components/time_entries/time_entry_form_component.html.erb:31 block (2 levels) in TimeEntries::TimeEntryFormComponent#call
modules/costs/app/components/time_entries/time_entry_form_component.html.erb:30 block in TimeEntries::TimeEntryFormComponent#call
app/components/concerns/op_turbo/streamable.rb:129 OpTurbo::Streamable#component_wrapper
modules/costs/app/components/time_entries/time_entry_form_component.html.erb:29 TimeEntries::TimeEntryFormComponent#call
app/components/concerns/op_turbo/streamable.rb:76 OpTurbo::Streamable#render_as_turbo_stream
app/controllers/concerns/op_turbo/component_stream.rb:86 block in OpTurbo::ComponentStream#modify_via_turbo_stream
app/controllers/concerns/op_turbo/component_stream.rb:199 block in OpTurbo::ComponentStream#resolve_turbo_streams
app/controllers/concerns/op_turbo/component_stream.rb:199 Array#map
app/controllers/concerns/op_turbo/component_stream.rb:199 OpTurbo::ComponentStream#resolve_turbo_streams
app/controllers/concerns/op_turbo/component_stream.rb:53 block (2 levels) in OpTurbo::ComponentStream#respond_to_with_turbo_streams
app/controllers/concerns/op_turbo/component_stream.rb:51 OpTurbo::ComponentStream#respond_to_with_turbo_streams
modules/costs/app/controllers/time_entries_controller.rb:122 TimeEntriesController#update
```

Appsignal: https://appsignal.com/openproject-gmbh/sites/67ec0573b9811010d8c9071a/exceptions/incidents/1064/traces/last
