php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73596 IntlDateFormatter fails to parse valid dates
Submitted: 2016-11-23 22:41 UTC Modified: -
Votes:4
Avg. Score:4.0 ± 1.0
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:1 (25.0%)
From: thomas dot lallement at 9online dot fr Assigned:
Status: Open Package: intl (PECL)
PHP Version: 7.1.0RC6 OS: Ubuntu / Red Hat
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
28 + 28 = ?
Subscribe to this entry?

 
 [2016-11-23 22:41 UTC] thomas dot lallement at 9online dot fr
Description:
------------
You can follow this link to see the current issue that is relevant on all version of php (even in 7.0.x or 7.1.0-RC6):

https://3v4l.org/GZlSs

The fact is that given the Timezone, the parsing can fail on different dates. The following code is used by Symfony Framework in a data transformer (DateTimeToLocalizedStringTransformer) that is used to parse date enter in Date and DateTime fields.

https://github.com/symfony/symfony/issues/20593

Test script:
---------------
https://3v4l.org/GZlSs


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Feb 22 01:01:26 2020 UTC