summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2011-02-09 06:38:32 +0000
committerosa <osa@FreeBSD.org>2011-02-09 06:38:32 +0000
commit00aede9329670186b00ae7ffaf3e58f808bfd226 (patch)
treee3b6f4dda5666803cf02dae9f5cce2a3a1c94c41 /usr.bin
parent22d6260b5eddff1578c298c0949d4a93f6bff9bc (diff)
downloadFreeBSD-src-00aede9329670186b00ae7ffaf3e58f808bfd226.zip
FreeBSD-src-00aede9329670186b00ae7ffaf3e58f808bfd226.tar.gz
Always convert Paskha day from Julian (old) to Gregorian (new) style by
adding 13 days. Bug introduced in 1.13 revision.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/calendar/paskha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/calendar/paskha.c b/usr.bin/calendar/paskha.c
index 373ee5d..98a4224 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);
}
OpenPOWER on IntegriCloud