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
Previous text:
2003-03-30 14:42: Subject: Calendar failure
I would commit, but there is something funny going on.
cvs server: conflict: YMD.pmod is modified but no longer in the repository C YMD.pmod
/ Mirar