Issue Type: Bug Created: 2012-01-18T13:56:01.000+0000 Last Updated: 2012-02-26T00:36:17.000+0000 Status: Closed Fix version(s): Reporter: Adri (adri11) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Date
Related issues: Attachments:
If i do this:
$a=new Zend_Date(); $b=clone $a;
and this: $a->isLater($b,'yyyy-MM-dd')
I should get a false value, insted I get a TRUE value.
If i use: $a->isLater($b,Zend_Date::DATES)
I get the correct value (false).
Posted by Sebastian Große (sebastian.grosse) on 2012-02-21T08:22:42.000+0000
I think this is correct behavier.
In the comparison from date $b only year, month and days are considered (so hours, minutes, seconds are 0) and so it is before date $a where hours, minutes and seconds or at least one of it are greater than 0, so $a is later than $b and the comparison is correct.
Posted by Adam Lundrigan (adamlundrigan) on 2012-02-26T00:36:17.000+0000
Have you found an issue?
See the Overview section for more details.