The Wayback Machine - https://web.archive.org/web/20201010042930/https://github.com/ionic-team/ionic-framework/pull/21997
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(datetime): do not reset to am when changing hour and pm is set #21997

Merged
merged 6 commits into from Sep 11, 2020

Conversation

@brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented Aug 27, 2020

Dev build: 5.4.0-dev.202009102321.26d3971

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Open a datetime with an hour, minute and ampm column. Change to "pm" then change the hour. See the pm switch to am.

Issue Number: fixes #19175 fixes #19260 fixes #20026 references #16630

What is the new behavior?

Correctly remains on pm by setting it on the datetime value.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@brandyscarney brandyscarney requested a review from liamdebeasi Aug 27, 2020
@brandyscarney
Copy link
Member Author

@brandyscarney brandyscarney commented Sep 2, 2020

Eric found an issue with this when adding in month + days, investigating

@brandyscarney brandyscarney merged commit 8b85fe0 into master Sep 11, 2020
1 of 2 checks passed
1 of 2 checks passed
screenshot Screenshot
Details
build Workflow: build
Details
@brandyscarney brandyscarney deleted the fix-datetime-ampm branch Sep 11, 2020
@brandyscarney brandyscarney added this to the 5.3.3 milestone Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.