Set card last_seen_at date to Alberta timezone
This commit is contained in:
parent
453233133f
commit
ea3f1fc6e4
|
@ -342,7 +342,7 @@ class DoorViewSet(viewsets.ViewSet, List):
|
||||||
@action(detail=True, methods=['post'])
|
@action(detail=True, methods=['post'])
|
||||||
def seen(self, request, pk=None):
|
def seen(self, request, pk=None):
|
||||||
card = get_object_or_404(models.Card, card_number=pk)
|
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()
|
card.save()
|
||||||
return Response(200)
|
return Response(200)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user