From 9bb0abd641dea21da67c496b994f70ce1954ed1e Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Tue, 17 Jun 2014 14:22:59 +0530 Subject: [PATCH] [FIX] GAMIFICATION: Fixed the Attribute Error ' 'str' object has no attribute 'strftime' ' --- addons/gamification/models/challenge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/gamification/models/challenge.py b/addons/gamification/models/challenge.py index 222e5cca49e..817f1566323 100644 --- a/addons/gamification/models/challenge.py +++ b/addons/gamification/models/challenge.py @@ -57,7 +57,7 @@ def start_end_date_for_period(period, default_start_date=False, default_end_date end_date = default_end_date if start_date and end_date: - return (start_date.strftime(DF), end_date.strftime(DF)) + return (datetime.strftime(start_date, DF), datetime.strftime(end_date, DF)) else: return (start_date, end_date)