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 #19531 [Form] DateType fails parsing when midnight is not a valid time #19541

Merged
merged 1 commit into from
Aug 13, 2016

Conversation

mbeccati
Copy link
Contributor

@mbeccati mbeccati commented Aug 5, 2016

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #19531
License MIT
Doc PR

@Jean85
Copy link
Contributor

Jean85 commented Aug 5, 2016

Thanks for fixing this so fast!

Status: reviewed

*/
protected function isPatternDateOnly()
{
// the default pattern includes time
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this comment is unnecessary?

@mbeccati
Copy link
Contributor Author

mbeccati commented Aug 5, 2016

@javiereguiluz Pushed comment amendments + additional test w/ escaped text

}

// strip escaped text
$pattern = preg_replace("#'(.*?)'#", '', $this->pattern);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test with escaped ICU data?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, it's there, I had to right scroll :)

@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented Aug 13, 2016

Thank you @mbeccati.

@fabpot fabpot merged commit c951bb6 into symfony:2.7 Aug 13, 2016
fabpot added a commit that referenced this pull request Aug 13, 2016
…not a valid time (mbeccati)

This PR was merged into the 2.7 branch.

Discussion
----------

Fix #19531 [Form] DateType fails parsing when midnight is not a valid time

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19531
| License       | MIT
| Doc PR        |

Commits
-------

c951bb6 Fix #19531 [Form] DateType fails parsing when midnight is not a valid time
This was referenced Sep 2, 2016
mbeccati added a commit to mbeccati/symfony that referenced this pull request Sep 7, 2016
Issue was introduced in symfony#19541
mbeccati added a commit to mbeccati/symfony that referenced this pull request Sep 7, 2016
Issue was introduced in symfony#19541
fabpot added a commit that referenced this pull request Sep 8, 2016
…sformer (mbeccati)

This PR was merged into the 2.7 branch.

Discussion
----------

[Form] Incorrect timezone with DateTimeLocalizedStringTransformer

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19721
| License       | MIT
| Doc PR        | n.a.

Issue was introduced in #19541

Commits
-------

bf6691c Fix #19721
@mbeccati mbeccati deleted the 19531-datetype-fix-27 branch September 9, 2016 08:14
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.

6 participants