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:
parent
22d6260b5e
commit
00aede9329
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user