Skip to content
Snippets Groups Projects
Commit 0fef4290 authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

bugfix

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.7
parent 5550a264
No related branches found
No related tags found
No related merge requests found
......@@ -864,7 +864,7 @@ class Day
{
int n;
object ye=this->year();
n=(-({-1,-2,-3,3,2,1,0})[this->year()->julian_day(0)%7]+d)/7+1;
n=(-({-1,-2,-3,-4,2,1,0})[this->year()->julian_day(0)%7]+d)/7+1;
if (n>ye->number_of_weeks())
return ye->next()->week(1);
else if (n<=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment