# Bug SPAR-283 - Incorrect dates displayed in date picker when switching to automatic mode

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-283

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system / Date picker |
| Target versions | 16.6.0 |
| Observed in versions | 16.5.0 |
| Bug found in version (deprecated) | 16.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Create 2 work packages, parent and child
    
    1.  child has both dates set
        
    2.  this means parent is in automatic mode and inherits its dates from its child
        
2.  On the parent, open the date picker
    
3.  Switch to manual mode
    
4.  Clear both dates
    
5.  Switch back to automatic mode
    

### What is the buggy behavior?

*   The finish date remains empty
    
*   The duration is not set
    

### What is the expected behavior?

1.  The finish date should be the one set by the child, same for duration.
    

Note that upon saving, the values are correctly set.

###   

###   

### Screenshots and other files

See attached screen recording

Here is a screenshot of the final state of the date picker:

<img class="image_resized op-uc-image op-uc-image_inline" style="width:400px;" src="/api/v3/attachments/793547/content">

### Environment information

**OpenProject installation type**

*   Hosted cloud edition
    
*   Packaged installation
    
    *   What distribution?
        
*   Docker All-in-one container
    
*   Docker-compose installation
    
*   Other (please specify)
    

**OpenProject version**

16.5.1

**Browser**

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

**Operating System**

*   [ ] Windows
*   [x] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)
