Fix leap year for 2000.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2983 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-15 00:53:39 +00:00
parent f0a951251e
commit 91bc48eadb

View File

@@ -45,7 +45,8 @@ RCSID("$Id$");
static int
is_leap(unsigned y)
{
return (y % 4) == 0 && ((y % 100) != 0 || (y % 400) == 0);
y += 1900;
return (y % 4) == 0 && ((y % 100) != 0 || (y % 400) == 0);
}
time_t