MantisBT - v4.0 Release (Planning)
View Issue Details
0000669v4.0 Release (Planning)Core Infrastructurepublic2010-12-25 02:392016-12-29 10:16
Reportereureka 
Assigned Tocaseydk 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version4.0Fixed in Version4.0 
Summary0000669: PEAR/Date
DescriptionThe method "compare" of the class "PEAR/Date" does not preserve the compared dates due to the timezone conversion. Thus, when using "compare", "equals", "before " or "after" the compared dates are not the same before and after comparison.
TagsNo tags attached.
Attached Files

Notes
(0001517)
eureka   
2011-01-03 01:33   
This bug has been fixed in release 1.5.0a1

see :http://pear.php.net/bugs/bug.php?id=12019
(0001521)
trevormorse   
2011-01-05 15:48   
Hi eureka,

Thanks for reporting this (and the link to the fix). I'm going to look at upgrading the version of the PEAR Date class we use.
(0001525)
trevormorse   
2011-01-06 15:33   
eureka, Is there anywhere in particular you are seeing this cause problems? We've had some problems in the past when attempting to upgrade the PEAR/Date class.
(0001541)
eureka   
2011-01-08 10:04   
Hi trevormorse,

nowhere in particular because "compare" is overloaded in class w2p_Utilities_Date and there is no call of this method with the third parameter.
But this function is not safe ..... this is potentially source of problems ...
(0003506)
caseydk   
2014-06-21 20:21   
The timezone is preserved now.. not sure when the fix was applied though. :(
(0003851)
caseydk   
2016-12-29 10:16   

I'm changing this issue to acknowledged.

While it's resolved in the v4.0 development branch. That is going to be reviewed commit by commit and merged into a new development branch over the next couple months.

Issue History
2010-12-25 02:39eurekaNew Issue
2010-12-25 05:19caseydkStatusnew => assigned
2010-12-25 05:19caseydkAssigned To => trevormorse
2011-01-03 01:33eurekaNote Added: 0001517
2011-01-05 15:48trevormorseNote Added: 0001521
2011-01-06 15:33trevormorseNote Added: 0001525
2011-01-08 10:04eurekaNote Added: 0001541
2011-08-09 13:11caseydkProjectPending Requests => v4.0 Release (Planning)
2014-01-21 17:57caseydkTarget Version => 4.0
2014-03-30 22:13caseydkCategoryGeneral => Core Infrastructure
2014-06-21 20:21caseydkNote Added: 0003506
2014-06-21 20:21caseydkStatusassigned => resolved
2014-06-21 20:21caseydkFixed in Version => 4.0
2014-06-21 20:21caseydkResolutionopen => fixed
2014-06-21 20:21caseydkAssigned Totrevormorse => caseydk
2016-12-29 10:16caseydkStatusresolved => acknowledged
2016-12-29 10:16caseydkNote Added: 0003851