6.0.0-beta1
7/18/25

[#11074] Refactor Imap_Client_DateTime
Summary Refactor Imap_Client_DateTime
Queue Horde Framework Packages
Queue Version Git develop
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 03/13/2012 (4875 days ago)
Due
Updated 09/10/2012 (4694 days ago)
Assigned
Resolved 09/10/2012 (4694 days ago)
Milestone
Patch No

History
09/10/2012 02:37:16 PM Michael Slusarz Comment #3
State ⇒ Resolved
Reply to this comment
This was resolved months ago:

commit 52c482d03fa2df9975d54887d8f245cb72851ad0
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Mar 13 13:20:45 2012 -0600

     [mms] Horde_Imap_Client_DateTime is now a wrapper around the 
native PHP DateTime obejct.
03/13/2012 06:38:05 PM Michael Slusarz Comment #2 Reply to this comment
I was looking at this yesterday.  The only issue comes with the fact 
that internally in this object it is doing things like fixing common 
parsing issues with bad dates.  It's probably cleaner to do this when 
instantiating the object rather than having a utility function return 
a DateTime object.

We might be able to optimize by moving the date checking code into the 
constructor though.
03/13/2012 05:36:11 PM Jan Schneider Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Assigned to Michael Slusarz
Queue ⇒ Horde Framework Packages
Summary ⇒ Refactor Imap_Client_DateTime
Type ⇒ Enhancement
State ⇒ Assigned
Reply to this comment
Now that we require PHP 5.3 and DateTime supports serialization, most 
of Imap_Client_DateTime may be obsolete.

Saved Queries