Branch: Tag:

2004-08-19

2004-08-19 13:18:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported dwim_day() fix from Pike 7.7.

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

2880:    else return (d->week()+1)->place(d);    }    -  if (strlen(day)==4) catch { return parse("%M/%D",day/2*"/",context); }; +  if (sizeof(day)==4) +  catch { +  if (d = parse("%M/%D",day/2*"/",context)) return d; +  };       if (day=="today") return t;    if (day=="tomorrow") return t+1;