Small typo
This commit is contained in:
parent
edec95bc5d
commit
ce3bdd82c1
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class DetailsPage(BasePage):
|
||||||
try:
|
try:
|
||||||
mydate = mydate.replace(month=mydate.month + 1)
|
mydate = mydate.replace(month=mydate.month + 1)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
lastday = calendar.monthrange(date.year, date.month + 1)[1]
|
lastday = calendar.monthrange(mydate.year, mydate.month + 1)[1]
|
||||||
mydate = mydate.replace(month=mydate.month + 1, day=lastday)
|
mydate = mydate.replace(month=mydate.month + 1, day=lastday)
|
||||||
return mydate
|
return mydate
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue