[FIX] GAMIFICATION: Fixed the Attribute Error

' 'str' object has no attribute 'strftime' '
This commit is contained in:
Paramjit Singh Sahota 2014-06-17 14:22:59 +05:30 committed by Martin Trigaux
parent b587038570
commit 9bb0abd641
1 changed files with 1 additions and 1 deletions

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)