6.0.0-beta1
7/17/25

[#9847] Make DateTime more tolerant with dates
Summary Make DateTime more tolerant with dates
Queue IMP
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester goncalo.queiros (at) portugalmail (dot) net
Created 04/08/2011 (5214 days ago)
Due
Updated 04/08/2011 (5214 days ago)
Assigned
Resolved 04/08/2011 (5214 days ago)
Milestone
Patch Yes

History
04/08/2011 05:48:12 PM goncalo (dot) queiros (at) portugalmail (dot) net Comment #5 Reply to this comment
Really eBay?
Hehe, yes. Probably if you set your timezone on eBay then the messages 
arrive with double timezone ;)

04/08/2011 05:41:48 PM Michael Slusarz Comment #4
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Really eBay?

Modified (combined two preg calls into single preg_replace() call) and 
committed.
04/08/2011 05:41:44 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git for this ticket:

Request #9847: Try all hacks to make date string parse correctly

  1 files changed, 13 insertions(+), 10 deletions(-)
http://git.horde.org/horde-git/-/commit/6bf62713747775b7ebcd922cc4358d8691a78b4c
04/08/2011 05:38:26 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

Request #9847: Parse broken date strings that contain timezone 
information in parantheses

  2 files changed, 13 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/8e071aee0396bc048a3639ecb24feb3a4176b272
04/08/2011 04:24:40 PM goncalo (dot) queiros (at) portugalmail (dot) net Comment #1
Priority ⇒ 1. Low
New Attachment: 0002-Be-more-tolerant-with-message-dates.patch Download
Patch ⇒ Yes
Milestone ⇒
Summary ⇒ Make DateTime more tolerant with dates
Type ⇒ Enhancement
State ⇒ New
Queue ⇒ IMP
Reply to this comment
Our users are receiving messages with dates in this format:
Fri, 06 Oct 2006 12:15:13 +0100 (GMT+01:00)

some of them come from Ebay itself.

The attached patch removes the extra "(GMT+01:00)" part, if the first 
date_create() call failed, and tries to create the date again.

Saved Queries