bug: ion-datetime presentation="date" emits `YYYY-MM-DDTHH:mm:00` (the current wall-clock time) instead of a date-only value
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- TypeScript
- スター
- 52.7k
- フォーク
- 13.3k
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 65
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ionic-team/ionic-framework のほかの issue
-
bug: input-otp, backspace in an empty box only moves focus instead of clearing the previous box対応中かも @sarankumar1325 が 9 日前に担当しました。 オープンpackage: core type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
ionic-team/ionic-framework#31639 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug: vue swipe cancellation throws when the previous page is missing対応中かも @dandoingdev が 32 日前に担当しました。 オープンpackage: vue type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ionic-team/ionic-framework#31514 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug: ion-searchbar input is always labelled "search text"; aria-label on the host is not forwarded対応中かも @HappyKnuckles が 27 日前に担当しました。 オープンa11y package: core type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
ionic-team/ionic-framework#31492 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug: IonTabs throws when a Fragment contains one IonRouterOutlet対応中かも @Benziza が 68 日前に担当しました。 オープンpackage: react type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ionic-team/ionic-framework#31410 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
package: angular type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ionic-team/ionic-framework#31291 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ionic-team/ionic-framework の issue をすべて見る
似ている issue
-
mobile-app
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Open-Locker/Open-Locker#352 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
leanprover-community/lean4game#589 ·
メンテナーはふだん 2 日以内に返信
-
Add: CS Action BGオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
unocss/unocss#5421 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信