# Bug COSTS-144 - Time in "my time tracking" should be displayed using configured time format

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

## Open points

_No work packages_

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Configure your language to English  (Profile / Settings)

2.  In Administration / Calendars and dates / Date format, configure "Time" to be "Based on user's language"

3.  In Administration / Time and costs / Defaults, activate "Allow start and finish times"

4.  Go to "My time tracking"

5.  Log some time with start and end time
    
    1.  Note that the time is displayed using 12h AM/PM format, both in the calendar view (visible if at least 1h long) and list view.

6.  Now to trigger the issue, two alternatives:
    
    1.  Either in Profile / Settings, configure your user's language to a language using 24h time format like German or French
    
    2.  Or in Administration / Calendars and dates / Date format, configure "Time" to be the 24h one

7.  Go back to "My time tracking" and look at times

### What is the buggy behavior?

  - The times are still displayed in 12h AM/PM format.

### What is the expected behavior?

1.  Use the configured format or the user's locale format when displaying times in "My time tracking".

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/726048/content">

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/726049/content">

### Environment information

**OpenProject version**

16.1

**Browser**

- [x] Chrome
- [ ] 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)

**Language**

English
