# Bug OP-10974 - Error 500 (undefined method `getutc') when opening activities

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-10974

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.2.2 |
| Observed in versions | 12.2.0 |
| Sprint | 12.2.2 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Install curerent Openproject 12.2 on Ubuntu 22.04 via PPA
2.  Go to any project
3.  Click module "Activity\!

### What is the buggy behavior?

An error 500 message is shown

In The syslog the error message is:  
``undefined method `getutc' for Tue, 19 Jul 2022:Date``

### What is the expected behavior?

Show the activity

### **Logs**

``` syslog
Aug 17 21:50:55 llp openproject-web-1.service[725955]: I, [2022-08-17T21:50:55.644270 #725955]  INFO -- : Started GET "/projects/levelup/activity" for 172.29.48.31 at 2022-08-17 21:50:55 +0200
Aug 17 21:50:55 llp openproject-web-1.service[725955]: I, [2022-08-17T21:50:55.645851 #725955]  INFO -- : Processing by ActivitiesController#index as HTML
Aug 17 21:50:55 llp openproject-web-1.service[725955]: I, [2022-08-17T21:50:55.645984 #725955]  INFO -- :   Parameters: {"project_id"=>"levelup"}
Aug 17 21:50:55 llp openproject-web-1.service[725955]: I, [2022-08-17T21:50:55.652182 #725955]  INFO -- : OpenProject User: Martin (mdittmar ID: 3 <martin.dittmar@charite.de>)
Aug 17 21:50:55 llp openproject-web-1.service[725955]: E, [2022-08-17T21:50:55.676393 #725955] ERROR -- : user=3 undefined method `getutc' for Tue, 19 Jul 2022:Date
Aug 17 21:50:55 llp openproject-web-1.service[725955]:               time.getutc
Aug 17 21:50:55 llp openproject-web-1.service[725955]:                   ^^^^^^^: undefined method `getutc' for Tue, 19 Jul 2022:Date
Aug 17 21:50:55 llp openproject-web-1.service[725955]:               time.getutc
Aug 17 21:50:55 llp openproject-web-1.service[725955]:                   ^^^^^^^
Aug 17 21:50:55 llp openproject-web-1.service[725955]: I, [2022-08-17T21:50:55.677296 #725955]  INFO -- :   Rendered common/error.html.erb within layouts/no_menu (Duration: 0.3ms | Allocations: 96)
Aug 17 21:50:55 llp openproject-web-1.service[725955]: I, [2022-08-17T21:50:55.716420 #725955]  INFO -- :   Rendered layouts/base.html.erb (Duration: 39.0ms | Allocations: 25293)
Aug 17 21:50:55 llp openproject-web-1.service[725955]: I, [2022-08-17T21:50:55.716507 #725955]  INFO -- :   Rendered layout layouts/no_menu.html.erb (Duration: 39.5ms | Allocations: 25472)
Aug 17 21:50:55 llp openproject-web-1.service[725955]: I, [2022-08-17T21:50:55.716696 #725955]  INFO -- : Completed 500 Internal Server Error in 71ms (Views: 29.9ms | ActiveRecord: 20.0ms | Allocations: 41847)
```

### Screenshots and other files

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/37410/content"></div></figure>

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Hosted cloud edition
- [x] Packaged installation
    - Ubuntu 22.04, Newestt PPA version
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

12.2

**Browser**

- [x] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

German
