I'm new to Silverstripe and realy start to like it!. But I think there is a bug.
The Expires.InPast seems to be not working correctly. It makes no sense to me! Can someone help me?
Please, take a look at this code and the output:
<% if Expires.InPast %>
<h3>THE DATE HAS EXPIRED!</h3>
<p><i>Today is $Now.</i></p>
<p>Expiringdate is $Expires.</p>
<p>Expiringdate has expired $Expires.Ago.</p>
<% else %>
<h3>Not yet Expired</h3>
<p>Expiringdate will be $Expires.</p>
<% end_if %>
THE DATE HAS EXPIRED!
Today is 2009-04-25.
Expiringdate is 2009-05-20.
Expiringdate has expired 24 days away.
I'm using SilverStripe-v2.3.1.
What is wrong?