Merge branch 'release/v12.53'
This commit is contained in:
@@ -237,7 +237,10 @@ def durationprint(d,dstring):
|
|||||||
if (d == None):
|
if (d == None):
|
||||||
return d
|
return d
|
||||||
else:
|
else:
|
||||||
return d.strftime(dstring)[:-5]
|
try:
|
||||||
|
return d.strftime(dstring)[:-5]
|
||||||
|
except AttributeError:
|
||||||
|
return None
|
||||||
|
|
||||||
def getstartenddate(timeperiod):
|
def getstartenddate(timeperiod):
|
||||||
s,e = timeperiod.split('/')
|
s,e = timeperiod.split('/')
|
||||||
|
|||||||
Reference in New Issue
Block a user