Permalink
Browse files

simplify parrot date calculation, felher++

  • Loading branch information...
moritz committed Jul 29, 2012
1 parent c3eb9ae commit 924f2d314868f1b38b1d5d3a89f1b2b7e02e49f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 release-dates.pl
View
@@ -4,7 +4,7 @@
sub parrot-release-after(Date $date is copy = Date.today) {
$date++ until $date.day-of-week == 2;
- $date += 7 until ($date - $date.truncated-to(:month)) div 7 == 2;
+ $date += 7 until ($date.day-of-month - 1) div 7 == 2;
$date;
}

0 comments on commit 924f2d3

Please sign in to comment.