strtotime can't interpret postgres "timestamp" values
| Request #29595 | strtotime can't interpret postgres "timestamp" values | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2004-08-10 07:24 UTC | Modified: | 2005-07-11 09:08 UTC |
|
||||||||||
| From: | phpbugs at blackbird dot net dot au | Assigned: | derick (profile) | |||||||||||
| Status: | Closed | Package: | Feature/Change Request | |||||||||||
| PHP Version: | 4.3.8 | OS: | FreeBSD 5.2.1 | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2004-08-10 07:24 UTC] phpbugs at blackbird dot net dot au
Description: ------------ I'm not sure whether this is strictly speaking a bug or a feature request, but strtotime doesn't seem to be able to interpret the output from a PostgreSQL 7.3.3 "timestamp" field. Reproduce code: --------------- <?php $from_postgres = '2004-08-09 14:48:27.304809+10'; echo strtotime($from_postgres); ?> Expected result: ---------------- It should print the unix timestamp for the given date. Actual result: -------------- int(-1)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-08-10 08:54 UTC] derick@php.net
[2005-07-11 09:08 UTC] derick@php.net