nextcloud / nextcloud/calendar

Wrong date and time formats

Open
#6,788 16 comments 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug Feature: Editor feature: language/translations (l10n/i18n)
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

Steps to reproduce
  1. Set your system and browser to language=German and locale=Germany
  2. Open the Calendar app with Firefox desktop
  3. 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):

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.