summaryrefslogtreecommitdiffstats
path: root/src/calendar.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2010-03-08 08:44:28 +0000
committerFrederic Culot <calcurse@culot.org>2010-03-08 08:44:28 +0000
commitb2321a7567340ff285cfcde5f9b4c7e60be7374d (patch)
tree877e48dbe6742358cf17f6037e127aa8563237ca /src/calendar.c
parent2ec8ab17accd8c34c180ccea34b9242f6b171d44 (diff)
downloadcalcurse-b2321a7567340ff285cfcde5f9b4c7e60be7374d.tar.gz
calcurse-b2321a7567340ff285cfcde5f9b4c7e60be7374d.zip
Patch to correct the wrong calculation of recurrent items' dates after a
turn of year (submitted by Lukas Fleischer, thanks!).
Diffstat (limited to 'src/calendar.c')
-rwxr-xr-xsrc/calendar.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/calendar.c b/src/calendar.c
index 2c6c781..2be7c62 100755
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -1,9 +1,9 @@
-/* $calcurse: calendar.c,v 1.31 2010/03/01 18:55:45 culot Exp $ */
+/* $calcurse: calendar.c,v 1.32 2010/03/08 08:44:44 culot Exp $ */
/*
* Calcurse - text-based organizer
*
- * Copyright (c) 2004-2009 Frederic Culot <frederic@culot.org>
+ * Copyright (c) 2004-2010 Frederic Culot <frederic@culot.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -64,7 +64,6 @@
#define lzero 318.351648 /* lunar mean long at EPOCH */
#define Pzero 36.340410 /* lunar mean long of perigee at EPOCH */
#define Nzero 318.510107 /* lunar mean long of node at EPOCH */
-#define TM_YEAR_BASE 1900
#define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)