From d4f5ab03cf4ca721eed64cc982289a5a6d5406d6 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 26 Feb 2020 00:56:46 +0000 Subject: [PATCH] Pause / unpause using alberta timezone date --- apiserver/apiserver/api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/apiserver/api/views.py b/apiserver/apiserver/api/views.py index 08bd7a6..49be323 100644 --- a/apiserver/apiserver/api/views.py +++ b/apiserver/apiserver/api/views.py @@ -122,7 +122,7 @@ class MemberViewSet(Base, Retrieve, Update): if not is_admin_director(self.request.user): raise exceptions.PermissionDenied() member = self.get_object() - member.paused_date = datetime.date.today() + member.paused_date = utils.today_alberta_tz() member.save() return Response(200) @@ -131,7 +131,7 @@ class MemberViewSet(Base, Retrieve, Update): if not is_admin_director(self.request.user): raise exceptions.PermissionDenied() member = self.get_object() - member.current_start_date = datetime.date.today() + member.current_start_date = utils.today_alberta_tz() member.paused_date = None member.save() utils.tally_membership_months(member)