# Bug OP-10656 - Duration error message when trying to create a work package with dates

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Low |
| Module |  |
| Target versions | 12.3.0 |
| Observed in versions | 12.3.0 |
| Sprint | 12.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.3.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

_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_

1.  Be in a `dev`  environment with the duration feature enabled.
2.  Go to a work package create page
3.  Add start and due dates apart more than one day
4.  Click on save

### What is the buggy behavior?

_Please describe the bug with as most details as possible. Example:_

*   The work package creation fails with an error message

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

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  Work package can be created without an error

### Environment information

Only happens in a `dev` environment, not in production

### Implementation notes

Either:

*   Have the frontend not send a duration property even though the backend sends it in its payload **OR**
*   Have the backend not include a duration property in its payload
