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
|
return -1
|
||||||
|
|
||||||
def totime(dtime):
|
def totime(dtime):
|
||||||
|
if dtime:
|
||||||
return int(time.mktime(dtime.timetuple()))
|
return int(time.mktime(dtime.timetuple()))
|
||||||
|
else:
|
||||||
|
return 0
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user