Always convert Paskha day from Julian (old) to Gregorian (new) style by

adding 13 days.  Bug introduced in 1.13 revision.
This commit is contained in:
osa 2011-02-09 06:38:32 +00:00
parent 22d6260b5e
commit 00aede9329

View File

@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
#define PASKHALEN (sizeof(PASKHA) - 1)
/* return year day for Orthodox Easter using Gauss formula */
/* (old style result) */
/* (new style result) */
int
paskha(int R) /*year*/
@ -53,5 +53,5 @@ paskha(int R) /*year*/
d = (19 * a + x) % 30;
e = (2 * b + 4 * c + 6 * d + y) % 7;
cumday = cumdaytab[isleap(R)];
return (((cumday[3] + 1) + 22) + (d + e));
return (((cumday[3] + 1) + 22) + (d + e) + 13);
}