Set card last_seen_at date to Alberta timezone

This commit is contained in:
Tanner Collin 2020-06-04 02:34:26 +00:00
parent 453233133f
commit ea3f1fc6e4

View File

@ -342,7 +342,7 @@ class DoorViewSet(viewsets.ViewSet, List):
@action(detail=True, methods=['post'])
def seen(self, request, pk=None):
card = get_object_or_404(models.Card, card_number=pk)
card.last_seen_at = datetime.date.today()
card.last_seen_at = utils.today_alberta_tz()
card.save()
return Response(200)