* src/Date.py: catch day changes if the date has both a start and stop part
svn: r2567
This commit is contained in:
parent
2fbe4465a0
commit
37bea0a162
@ -459,9 +459,9 @@ def compare_dates(f,s):
|
|||||||
return cmp(first.year,second.year)
|
return cmp(first.year,second.year)
|
||||||
elif first.month != second.month:
|
elif first.month != second.month:
|
||||||
return cmp(first.month,second.month)
|
return cmp(first.month,second.month)
|
||||||
elif f.range != 1:
|
elif first.day != second.day:
|
||||||
return cmp(first.day,second.day)
|
return cmp(first.day,second.day)
|
||||||
else:
|
elif f.range == 1:
|
||||||
first = f.get_stop_date()
|
first = f.get_stop_date()
|
||||||
second = s.get_stop_date()
|
second = s.get_stop_date()
|
||||||
if first.mode != second.mode:
|
if first.mode != second.mode:
|
||||||
@ -472,3 +472,4 @@ def compare_dates(f,s):
|
|||||||
return cmp(first.month,second.month)
|
return cmp(first.month,second.month)
|
||||||
else:
|
else:
|
||||||
return cmp(first.day,second.day)
|
return cmp(first.day,second.day)
|
||||||
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user