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:
Sergey A. Osokin 2011-02-09 06:38:32 +00:00
parent 2aa2451972
commit b24cc00190
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218473

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);
}