Branch: Tag:

2002-05-27

2002-05-27 11:44:59 by Johan Sundström <oyasumi@gmail.com>

Committing Mirars fix for problem with Calendar.Week(2002,1)->day() returning a bad day.

Rev: lib/modules/Calendar.pmod/YMD.pmod:1.43

750:       cDay day(int ... mp)    { -  if (!sizeof(mp)) -  return Day("ymd_yd",rules,y,yjd,jd,yd,1); +  int m; +  if (sizeof(mp)) m=mp[0]; +  else m=1;    -  int m=mp[0]; -  +     if (m==-1 && !n)    return Day("ymd_yd",rules,y,yjd,jd,yd,1);