Fix an error in handling null times
svn: r13552
This commit is contained in:
parent
0798a9470a
commit
ddb1b31223
@ -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
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user