nextcloud / nextcloud/calendar
Wrong date and time formats
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 332
- Avg merge
- 16h 13m
- Merged PRs (30d)
- 137
Description
Steps to reproduce
- Set your system and browser to language=German and locale=Germany
- Open the Calendar app with Firefox desktop
- Create a new event
Expected behavior
Date shows DD-MM-YYYY and time in 24h format
Actual behavior
Date shows MM-DD-YYYY and time in 12h format
Calendar app version
7.x
Additional info
With https://github.com/nextcloud/calendar/pull/6423 we replaced the custom (and buggy) datepicker with a native one. The objectives were usability and accessibility. Most platforms come with a very capable date and time picker. Firefox only has a date picker, which was considered an acceptable trade-off, because keyboard input is always possible.
This is an upstream issue with Firefox. I'm filing the ticket here for transparency and to have a central point for updates/discussion.
Relevant Firefox ticket(s):
- Poor support for datetime-local (no time, and null-value if time not selected) https://bugzilla.mozilla.org/show_bug.cgi?id=1850383
You can also test the datetime picker at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local. It works well with Chrome but not with Firefox. The problem does not appear to be specific to Firefox.
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 German-locale event creation flow in Firefox desktop and compare it with Chrome using the linked datetime-local test page. Read Firefox ticket 1850383 and the discussion around pull request 6423; the issue identifies an upstream limitation, so no repository change or local completion condition is specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100