Bug #79400 [NEW]: PHP does not parse postgres ISO or RFC date times
| From: | ce dot ceo at cybercoment dot com | Date: | Fri, 20 Mar 2020 20:53:49 +0000 |
| Subject: | Bug #79400 [NEW]: PHP does not parse postgres ISO or RFC date times | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-226192@lists.php.net to get a copy of this message | ||
From: ce dot ceo at cybercoment dot com
Operating system: alpine
PHP version: 7.4.4
Package: Date/time related
Bug Type: Bug
Bug description:PHP does not parse postgres ISO or RFC date times
Description:
------------
PHP 7.4.1
Postgres 11.6
None of the DateTime format strings successfully parse dates from
Postgres's default "ISO" format (Although postgres has its own bugs
where they use a space instead of a 'T')
strtotime works but it's a timestamp instead of a datetime.
Test script:
---------------
DateTime::createFromFormat(DateTime::ISO8601, "2021-03-12
20:17:36.922347")
DateTime::createFromFormat(DateTime::RFC3339, "2021-03-12
20:17:36.922347")
DateTime::createFromFormat(DateTime::RFC3339_EXTENDED, "2021-03-12
20:17:36.922347")
--
Edit bug report at https://bugs.php.net/bug.php?id=79400&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79400&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79400&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79400&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79400&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79400&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79400&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79400&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79400&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79400&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79400&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79400&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79400&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79400&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79400&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79400&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79400&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79400&r=mysqlcfg