[Oscailt] Calendar Bug
Mike Tonks
fluffymike at googlemail.com
Thu Feb 18 11:35:00 PST 2010
Hi,
Our calendar was always showing events from yesterday.
Finally, I found the reason.
iindyruntime/newswiredisplay.inc 677 (line 805 in lastest version)
- $this->query->event_time_lower_limit=strtotime("11:59pm
yesterday");
+ $this->query->event_time_lower_limit=strtotime("yesterday 23:59");
Here's why:
print ">>>" . strtotime("11:59pm yesterday") . "<<<<br/>";
print ">>>" . strtotime("23:59 yesterday") . "<<<<br/>";
print ">>>" . strtotime("yesterday") . "<<<<br/>";
print ">>>" . strtotime("yesterday 23:59") . "<<<<br/>";
print ">>>" . strtotime("17 Feb 2010") . "<<<<br />";
print ">>>" . strtotime("17 Feb 2010 23:59") . "<<<<br />";
print ">>>" . strtotime("18 Feb 2010") . "<<<<br />";
print ">>>" . strtotime("18 Feb 2010 12:00") . "<<<<br />";
print ">>>" . strtotime("18 Feb 2010 19:25") . "<<<<br />";
print ">>>" . strtotime("now") . "<<<<br />";
>>>1266364800<<< << note these the same
>>>1266364800<<< << note these the same
>>>1266364800<<< << note these the same
>>>1266451140<<< << note these the same
>>>1266364800<<<
>>>1266451140<<<
>>>1266451200<<<
>>>1266494400<<<
>>>1266521100<<<
>>>1266521330<<<
i.e. time must come after date, or it's ignored, so '15:59pm
yesterday' is just yesterday morning.
Maybe it's some weirdness on our system, can someone confirm???
mike
More information about the Oscailt
mailing list