Committing my fix to bug #4550:

OnThisDay.py disregards calendar differences (e.g., Julian vs Gregorian) 
- PATCH OK'ed by dsblank



svn: r16659
This commit is contained in:
Vassilii Khachaturov 2011-02-17 22:55:21 +00:00
parent d3afa6c414
commit 552d11ad8e

View File

@ -61,6 +61,8 @@ def run(database, document, main_event):
else:
main_date = main_event.get_date_object()
cal = main_date.get_calendar();
# setup the simple access functions
sdb = SimpleAccess(database)
sdoc = SimpleDoc(document)
@ -81,6 +83,7 @@ def run(database, document, main_event):
for event in database.iter_events():
date = event.get_date_object()
date.convert_calendar(cal)
if date.get_year() == 0:
continue
if (date.get_year() == main_date.get_year() and