Skip to content

Commit cd3872e

Browse files
committed
fixed the bug with floats in date
1 parent a451d9a commit cd3872e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paramgenerator/generateparams.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def handlePersonParam(person):
7676

7777
def handleTimeParam(timeParam):
7878
#print timeParam.year
79-
res = str(timegm(date(year=timeParam.year, month=timeParam.month, day=timeParam.day).timetuple()))
79+
res = str(timegm(date(year=int(timeParam.year),
80+
month=int(timeParam.month), day=int(timeParam.day)).timetuple()))
8081
return res
8182

8283
def handleTimeDurationParam(timeParam):

0 commit comments

Comments
 (0)