diff --git a/addons/gamification/plan.py b/addons/gamification/plan.py index 4b253f7286d..ca2934231bc 100644 --- a/addons/gamification/plan.py +++ b/addons/gamification/plan.py @@ -83,7 +83,7 @@ class gamification_goal_plan(osv.Model): :return: a string in DEFAULT_SERVER_DATE_FORMAT representing the date""" res = {} for plan in self.browse(cr, uid, ids, context): - last = datetime.strptime(plan.last_report_date, '%Y-%m-%d').date() + last = datetime.strptime(plan.last_report_date, DF).date() if plan.report_message_frequency == 'daily': next = last + timedelta(days=1) res[plan.id] = next.strftime(DF)