Skip to content

fix(datetime): Invalid dates in ion-datetime - #14434

Closed
olivercodes wants to merge 4 commits into
ionic-team:masterfrom
olivercodes:master
Closed

olivercodes wants to merge 4 commits into
ionic-team:masterfrom
olivercodes:master

Conversation

@olivercodes

@olivercodes olivercodes commented May 6, 2018 •

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

This fix resolves the Invalid Dates issue in ion-datetime. Currently, it is possible to select invalid dates, because the day column does not update on the first picker change (for example, open the picker, select January 31st, then move Month February).

The fix had to be updated from the original fix: #13529
due to the changeover to Stencil / Ionic 4.

I opened a separate hotfix patch to the 3.9 tag.
#14447

Changes proposed in this pull request:

  • picker-column emits on change
  • ion-datetime listens for the emit and re-validates the columns

Ionic Version: 1.x / 2.x / 3.x / 4.x

4.x

Fixes: #

#13287
#12533
#12319
#13430

@olivercodes olivercodes changed the title (fix) Invalid dates in ion-datetime fix(datetime) - Invalid dates in ion-datetime May 6, 2018
@olivercodes olivercodes changed the title fix(datetime) - Invalid dates in ion-datetime fix(datetime): Invalid dates in ion-datetime May 6, 2018
@brandyscarney brandyscarney added this to the @ionic/angular 4.0.0 milestone May 7, 2018
@brandyscarney brandyscarney added the package: core @ionic/core package label Jul 19, 2018
@olivercodes

Copy link
Copy Markdown
Contributor Author

@mhartington updated with rebase as mentioned

@Chris-Devine

Copy link
Copy Markdown

any idea when will be merged?

@CompRider

Copy link
Copy Markdown

Any update?

1 similar comment
@ATouhou

ATouhou commented Nov 8, 2018

Copy link
Copy Markdown

Any update?

@adamdbradley adamdbradley self-assigned this Nov 21, 2018
@siddharth-vaghasia

Copy link
Copy Markdown

Found similar Issue is with below picker format for month and year....

<ion-datetime display-format="MMM-YYYY" (ionChange)="reloadData()" picker-format="MMM YYYY" [(ngModel)]="asofDate">

If user select Feb 2019, it set asofDate to '"2019-02-30T18:08:06.601-00:00" which is not valid.

@brandyscarney brandyscarney removed this from the @ionic/angular 4.0.0 milestone Mar 1, 2019
@thomasferns

Copy link
Copy Markdown

The bug still persists any time frame for when the fix will be released?

@julienkermarec

julienkermarec commented Mar 8, 2019 •

Copy link
Copy Markdown

Merge this fix please ;-) ping @adamdbradley

@paulohenriqu

Copy link
Copy Markdown

any idea when will be merged?

2

@liamdebeasi

Copy link
Copy Markdown
Contributor

Hi there,

This issue has been resolved by #17846. You have been added as a co-author in that commit due to your contributions here.

Thank you very much for the work you put into this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.