# Feature OP-8050 - Improve locale setting strategy (dates calculation)

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 11.3.0 |
| Sprint | 11.3.0 |
| Backlog bucket |  |
| Votes | 5 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

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

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

In OP the locale seems to be linked to the user's language and it defaults to en-US locale, which can lead to surprising issues like [this](https://community.openproject.com/projects/openproject/work_packages/35333) (US had 1 week less in 2020):

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

Furthermore, it seems that the user is not able to set the correct locale because OP doesn't offer all the language/locale options.

Because the locale is common to the entire project and affects the way the project is managed (it is used by our dates library (moment)), maybe it should be an administrator setting. Other approaches could be to offer different languages that would set the correct locales (e.g. en-GB) or to link the timezone setting to the locale.
