From ce3bdd82c1a0204a501fd81bdfa46ff48c9d9e77 Mon Sep 17 00:00:00 2001 From: Florent Date: Fri, 31 Jan 2014 16:33:48 +0100 Subject: [PATCH] Small typo --- modules/freemobile/pages/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/freemobile/pages/history.py b/modules/freemobile/pages/history.py index f882bd1b..4698be3b 100644 --- a/modules/freemobile/pages/history.py +++ b/modules/freemobile/pages/history.py @@ -144,7 +144,7 @@ class DetailsPage(BasePage): try: mydate = mydate.replace(month=mydate.month + 1) 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) return mydate