Commit eae1e2be authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Update hour format

parent a0b8abcc
......@@ -151,7 +151,7 @@ class UserStatsSerializer(serializers.ModelSerializer):
from django.utils import timezone
tz_str = timezone.localtime(timestamp)
date, hour = tz_str.strftime('%d-%m-%Y %H:%M:%S').split()
return '{} às {}'.format(date, hour)
return '{} / {}'.format(date, hour)
else:
return ''
......
......@@ -351,7 +351,7 @@ class UserAccessView(views.APIView):
from django.utils import timezone
tz_str = timezone.localtime(timestamp)
date, hour = tz_str.strftime('%d-%m-%Y %H:%M:%S').split()
return '{} às {}'.format(date, hour)
return '{} / {}'.format(date, hour)
def get(self, request, format=None):
user_id = request.GET['user']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment