Skip to content

Special price date from issue resolve #18578

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

Merged
merged 3 commits into from
Nov 5, 2018

Conversation

hiren0241
Copy link
Contributor

@hiren0241 hiren0241 commented Oct 13, 2018

Fixed issue of 2.2.6 "Special price date from" Failed to parse time string

Description (*)

In magento 2.2.6 when Account locale set to it_IT and admin user create one new product and set it's special price then it will gives error while saving the product that failed to parse time string. In this Pull Request I have fixed this issue. By modifing date format before it's parse to Date object.

Fixed Issues (if relevant)

  1. 2.2.6 "Special price date from" Failed to parse time string #18158: 2.2.6 "Special price date from" Failed to parse time string

Steps to reproduce

  1. Magento 2.2.6 create a new product with a price
  2. Edit the new product and add a special price

Expected result

  1. The product has been saved

Actual result

  1. DateTime::__construct(): Failed to parse time string (20/09/2018) at position 0 (2): Unexpected character

Manual testing scenarios (*)

  1. Account locale set to it_IT if it's not set.
  2. Add one new product and save. Than edit the product by adding special price and set from date as well. Press Save.
  3. Product Save successfully that message will appear.
  4. Now, Set another account locale and repeat the proceess, product will save successfully again.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Oct 13, 2018

CLA assistant check
All committers have signed the CLA.

@magento-engcom-team magento-engcom-team added Partner: Krish TechnoLabs partners-contribution Pull Request is created by Magento Partner labels Oct 13, 2018
@magento-engcom-team
Copy link
Contributor

Hi @hiren0241. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me $VERSION instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@larsroettig larsroettig self-requested a review October 14, 2018 10:10
@larsroettig
Copy link
Member

@magento-engcom-team give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @larsroettig. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @larsroettig, here is your new Magento instance.
Admin access: http://ec2-34-228-235-121.compute-1.amazonaws.com/pr-18578//admin
Login: admin Password: 123123q

@larsroettig larsroettig self-assigned this Oct 14, 2018
@larsroettig
Copy link
Member

larsroettig commented Oct 14, 2018

@magento-engcom-team give me 2.3-develop instance

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Oct 14, 2018
@magento-engcom-team
Copy link
Contributor

Hi @larsroettig, thank you for the review.
ENGCOM-3184 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

@hiren0241 thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@magento-engcom-team
Copy link
Contributor

Hi @hiren0241. Thank you for your contribution.
We will aim to release these changes as part of 2.3.1.
Please check the release notes for final confirmation.

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

Successfully merging this pull request may close these issues.

5 participants