mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 14:11:13 +01:00
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
2aa2451972
commit
b24cc00190
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218473
@ -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