|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-02-26 01:57 UTC] requinix@php.net
-Type: Bug
+Type: Feature/Change Request
[2018-02-26 07:25 UTC] derick@php.net
[2018-06-18 20:52 UTC] auroraeosrose at gmail dot com
[2019-08-15 06:55 UTC] php at sirdiego dot de
[2020-06-16 16:44 UTC] jacob at jacobweber dot com
[2021-10-26 11:42 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-10-26 11:42 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ `\DateTime::createFromFormat('Y-m-d\TH:i:sP', '2015-06-09T14:00:00-07:00')` works but `\DateTime::createFromFormat('Y-m-d\TH:i:s.vP', '2015-06-09T14:00:00.000-07:00')` doesnt. `var_dump(\DateTime::getLastErrors())` outputs `array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(2) ["errors"]=> array(2) { [26]=> string(35) "The format separator does not match" [27]=> string(13) "Trailing data" } }` It is being triggered by the `v` option which should be supported. Test script: --------------- \DateTime::createFromFormat('Y-m-d\TH:i:s.vP', '2015-06-09T14:00:00.000-07:00'); var_dump(\DateTime::getLastErrors());