bug: ion-datetime presentation="date" emits `YYYY-MM-DDTHH:mm:00` (the current wall-clock time) instead of a date-only value
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 74/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- frontend
Direção de pesquisa
Start in core/src/components/datetime/datetime.tsx and trace how todayParts and defaultParts feed the selected date; then inspect convertDataToISO in utils/manipulation.ts. Check the date-only behavior against the documented presentation="date" format and run the relevant datetime tests. Done means selecting a day emits YYYY-MM-DD without a time.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Ionic Framework Version
v9.x (9.0.7)
Current Behavior
<ion-datetime presentation="date"> with no initial value: clicking a day emits
ionChange detail.value = "2026-09-01T16:19:00"
at 16:19 local time, and datetime.value reads the same string. The time part is whatever the clock showed when the component initialised.
Where it comes from (core/src/components/datetime/datetime.tsx):
- L1529
this.todayParts = parseDate(getToday())—getToday()(utils/data.tsL27–46) returns a full ISO timestamp, so the parts carryhour/minute; - L1534
defaultPartsis derived from them, and selecting a day keeps thosehour/minutefields; convertDataToISO(utils/manipulation.tsL37–40) appendsT${hour}:${minute}:00wheneverhour !== undefined, regardless ofpresentation.
A backend DateOnly / date column rejects the value, and the same picker opened on two days produces two different strings for the same date.
Expected Behavior
presentation="date" emits YYYY-MM-DD (the format the docs describe for a date-only picker and the one min/max accept).
Steps to Reproduce
<ion-datetime presentation="date"></ion-datetime>with novalue.- Click any enabled day.
- Read
event.detail.valueinionChange.
Ionic Info
@ionic/core 9.0.7, Chromium 142 (Playwright headless).
- Linguagem predominante
- TypeScript
- Estrelas
- 52.7k
- Forks
- 13.3k
- Merge médio
- 3d 4h
- PRs com merge (30d)
- 72
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ionic-team/ionic-framework
-
bug: input-otp, backspace in an empty box only moves focus instead of clearing the previous boxTalvez já em andamento @sarankumar1325 assumiu há 9 dias. Abertapackage: core type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
ionic-team/ionic-framework#31639 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: vue swipe cancellation throws when the previous page is missingTalvez já em andamento @dandoingdev assumiu há 32 dias. Abertapackage: vue type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ionic-team/ionic-framework#31514 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: ion-searchbar input is always labelled "search text"; aria-label on the host is not forwardedTalvez já em andamento @HappyKnuckles assumiu há 27 dias. Abertaa11y package: core type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
ionic-team/ionic-framework#31492 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: IonTabs throws when a Fragment contains one IonRouterOutletTalvez já em andamento @Benziza assumiu há 67 dias. Abertapackage: react type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ionic-team/ionic-framework#31410 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
package: angular type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
ionic-team/ionic-framework#31291 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ionic-team/ionic-framework
Issues semelhantes
-
🐛 bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
LibreChat-AI/LibreChat#17733 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
TypeStrong/typedoc#3150 ·
-
accessibility bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
Normalize image-source MIME types before SVG dispatchTalvez já em andamento @HarsH-1877 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
tscircuit/image-utils#58 · 1 comentário ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 2 dias