# Bug OP-13172 - Logging time using "My spent time" widget returns previous day (likely time zone issue)

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

## Open points

_No work packages_

## Details

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

### Before filing a report

*Before you file a report, please ensure you are running the latest version of OpenProject and*   
*have searched for similar bug reports.*

This behavior has started as of our update to version 13.

### Steps to reproduce

1.  Users have a "My spent time" widget on their my page that they use to log time.
2.  Users manually click on a given day to log time against.

### What is the buggy behavior?

1.  The Log time floating window appears, but the date pre-populated in the date field is from the day prior.
2.  Users did not catch this, and then realized the time did not get logged for that today, but the day prior.
3.  Additionally, Mondays are showing as a non-working day (dark grey), when the system has them set to working. I believe this could be related to a previous bug report I submitted (<mention class="mention" data-id="47057" data-type="work_package" data-text="#47057">\#47057</mention>) and likely a calendar/time zone issue. We are located in Arizona, United States.

NOTE:  While trying to log time within a given work package, the Log time floating window returns the correct date.

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

### What is the expected behavior?

1.  The pre-populated date in the date field is from the day selected, and the time is logged against the correct date.

### Important note

*Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, but no longer add any new images or other attachments. Please make sure that all necessary information and attachments are added, and the following attributes are set:*

### **Logs**

N/A

### Screenshots and other files

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

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

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Hosted cloud edition
- [x] Packaged installation
    - What distribution? - Ubuntu Server 20.04 LTS - OpenProject 13.0
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

13.0

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [x] Other (please specify)
  - [x] Microsoft Edge

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug occurred.*
