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:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:1 (33.3%)
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thomas dot lallement at 9online dot fr
New email:
PHP Version: OS:

 

 [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-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 15 05:01:26 2019 UTC