clicrdv: fix date format (fix #1664)
This commit is contained in:
parent
37e99f8c46
commit
a3aadf6ac3
|
@ -109,7 +109,7 @@ def get_available_dates(intervention):
|
|||
for timeslot in get_available_timeslots(intervention):
|
||||
parsed = time.strptime(timeslot, '%Y-%m-%d %H:%M:%S')
|
||||
date_tuple = (time.strftime('%Y-%m-%d', parsed),
|
||||
format_time(parsed, '%(weekday_name)s %(day)s/%(month)s/%(year)s'))
|
||||
format_time(parsed, '%(weekday_name)s %(day)0.2d/%(month)0.2d/%(year)s'))
|
||||
if date_tuple in dates:
|
||||
continue
|
||||
dates.append(date_tuple)
|
||||
|
|
Reference in New Issue