From b24cc001907f9f7d4945aa323b72efedb992292f Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Wed, 9 Feb 2011 06:38:32 +0000 Subject: [PATCH] Always convert Paskha day from Julian (old) to Gregorian (new) style by adding 13 days. Bug introduced in 1.13 revision. --- usr.bin/calendar/paskha.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/calendar/paskha.c b/usr.bin/calendar/paskha.c index 373ee5d261cf..98a422465926 100644 --- a/usr.bin/calendar/paskha.c +++ b/usr.bin/calendar/paskha.c @@ -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); }