# Bug COSTS-9 - When logging time with comma in English language settings everything after the comma is cut off

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.3.0 |
| Observed in versions | 11.1.0 |
| Bug found in version (deprecated) | 11.1.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### **Environment**:

Your OpenProject Version: Edge / Cloud Edition

Operating System / Browser / OpenProject language: Windows  /  Firefox 85 (English)  /  English (time zone Berlin AND London)

### **Logs**

### **Steps to reproduce:**

1.  Set OpenProject to English
2.  Go to My Page and add the spent time widget
3.  Log time with a comma, e.g. "1,5"; "1,234"; "1,234.5" and click on save

### **Actual Behavior**

Entering a time with comma works fine. No error message.

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20662/content"></div></figure>

However, after saving all the hours mentioned above are reduced to 1 hour.

<figure class="image op-uc-figure" style="width:13.16%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20663/content"></div></figure>

### **Expected Behavior**

Either there's an error message or numbers can be inserted with a comma.

### Notes

Same behavior when logging time within an opened work package
