Skip to content

Commit

Permalink
Update: search results dob format dd/mm/yyyy instead of yyyy-mm-dd
Browse files Browse the repository at this point in the history
  • Loading branch information
awf-dbca committed Jul 24, 2024
1 parent 2a35725 commit 18bf0c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wildlifecompliance/components/users/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ def get(self, request, format=None):
for email_user in user_data:
if email_user.dob:
text = '{} {} (DOB: {})'.format(get_first_name(email_user),
get_last_name(email_user), get_dob(email_user))
get_last_name(email_user), get_dob(email_user).strftime('%d/%m/%Y'))
else:
text = '{} {}'.format(get_first_name(email_user),
get_last_name(email_user))
Expand Down Expand Up @@ -1200,7 +1200,7 @@ def get(self, request, format=None):
for email_user in user_data:
if email_user.dob:
text = '{} {} (DOB: {})'.format(get_first_name(email_user),
get_last_name(email_user), get_dob(email_user))
get_last_name(email_user), get_dob(email_user).strftime('%d/%m/%Y'))
else:
text = '{} {}'.format(get_first_name(email_user),
get_last_name(email_user))
Expand Down

0 comments on commit 18bf0c7

Please sign in to comment.