nextcloud / nextcloud/deck

Entering a due date manually interprets it independantly from the user's locale

Open
#5,075 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug translation
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

Describe the bug
When one enters a due date manually, the date gets interpreted as an American date (mm/dd/yyyy) instead of the format from the locale (e.g. dd/mm/yyyy).

To Reproduce
Steps to reproduce the behavior:

  1. Open a card
  2. In the date field, instead of selecting the date with mouse clicks, enter the date by keyboard (e.g. 01/09/2023)
  3. Press Enter
  4. The date is now 09 january 2023

Expected behavior

The date should be interpreted in accordance with the user's locale. In our exemple, it should be 1st septembre 2023

Client details:

  • OS: Windows
  • Browser: Firefox and Chrome
  • Version 117 and 116
  • Device: Desktop
Server details

Operating system: Ubuntu 22.04

Web server: Apache2

Database: Mysql

PHP version: 8.1.2

Nextcloud version: 26.0.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a card's due-date field using a locale with a day/month/year format, such as entering 01/09/2023 and pressing Enter. Trace the frontend date parsing from that input and verify that the stored and displayed date follows the user's locale rather than interpreting the input as month/day/year.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.