adopted-ember-addons / adopted-ember-addons/ember-pikaday

Format input output to user locale

Offen
#100 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
156
Forks
164
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I've been trying to set the format to user's locale format (the formatted string visible in the input field) to no availability.
The problem seems to be that the `format` parameter expects a format string eg `{{pikaday-input format="MM/DD/YYYY"}}` but it's impossible to find out what the browser's format is currently set.

I would actually expect the output to be processed with `Date.prototype.toLocaleDateString()` by default with the option to customize it using the `format` parameter.

It might be me missing something important. Do you have any suggestions?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by tracing how the `format` parameter is handled by the datepicker component and how the formatted string is placed in the input field. Compare that behavior with `Date.prototype.toLocaleDateString()` and determine the expected default and customization behavior, then define tests covering locale output and an explicit `format` value.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
frontend
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.