Fix an error in handling null times

svn: r13552
This commit is contained in:
Doug Blank 2009-11-11 03:20:34 +00:00
parent 0798a9470a
commit ddb1b31223

View File

@ -36,7 +36,10 @@ def lookup_role_index(role0, event_ref_list):
return -1
def totime(dtime):
return int(time.mktime(dtime.timetuple()))
if dtime:
return int(time.mktime(dtime.timetuple()))
else:
return 0
#-------------------------------------------------------------------------
#