[FIX] GAMIFICATION: Fixed the Attribute Error

' 'str' object has no attribute 'strftime' '
This commit is contained in:
Paramjit Singh Sahota
2014-06-17 15:12:15 +02:00
committed by Martin Trigaux
parent b587038570
commit 9bb0abd641
+1 -1
View File
@@ -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)