Applied in Pike 7.5.
/ Henrik Grubbström (Lysator)
Previous text:
2003-03-30 14:47: Subject: Calendar failure
Since Nilsson knows much better how the Calendar module is supposed to work, I guess I wont be committing any more fixes there.
Here's a fix for the DST problem anyway.
@@ -2487,8 +2491,17 @@ TimeRange tr; if (catch { tr=origin[whut](h,m,s);
- } && h==24 && m==0 && s==0) // special case
return origin->end()->second();
})
if (h==24 && m==0 && s==0) // special case
return origin->end()->second();
else
{
object d=origin->day();
array(cHour) ha=origin->hours();
int n=search(ha->hour_no(),h);
if (n!=-1) tr=ha[n]->minute(m)->second(s);
else return 0; // no such hour
}
if (tr->hour_no()!=h || tr->minute_no()!=m) {
/ Mirar