Entering a due date manually interprets it independantly from the user's locale
Nobody has claimed this yet.
- 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:
- Open a card
- In the date field, instead of selecting the date with mouse clicks, enter the date by keyboard (e.g. 01/09/2023)
- Press Enter
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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