Commit 657d2e23 authored by mit's avatar mit

bug fix

parent 7821c07d
......@@ -223,10 +223,11 @@ class Input:
tmpday = day
h = 0
tmpday =
tmpday = day
d = datetime.datetime(day.year, day.month,, h, m)
# add hour and minute to day by using datetime.datetime
tmpday = datetime.datetime.fromordinal(day.toordinal()+1)
else: # idem
tmpday = datetime.datetime.fromordinal(day.toordinal())
d = tmpday.replace(hour=h, minute=m)
return d
errmsg = _("You entered an invalid time")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment