From 521b8fa98d8028755b1270b436a449c40f0817ff Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 21 May 2011 22:06:40 +0000 Subject: [PATCH] Made NextYear use Today() + 1 svn: r17547 --- src/gen/lib/date.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gen/lib/date.py b/src/gen/lib/date.py index 43ec315af..7bff4a6eb 100644 --- a/src/gen/lib/date.py +++ b/src/gen/lib/date.py @@ -1746,11 +1746,7 @@ def NextYear(): """ Returns a Date object set to next year """ - import time - next_year = Date() - thisyear = time.localtime(time.time()) - next_year.set_yr_mon_day(thisyear[0]+1, thisyear[1], thisyear[2]) - return next_year + return Today() + 1 #------------------------------------------------------------------------- #