From 76bfd3bb48bda80d2d69ccd23f8d88a412d833b3 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 28 Mar 2018 08:40:22 -0700 Subject: [PATCH] Fix non-standard strftime() call --- conduit/apps/authentication/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conduit/apps/authentication/models.py b/conduit/apps/authentication/models.py index 2129957..fd42c69 100644 --- a/conduit/apps/authentication/models.py +++ b/conduit/apps/authentication/models.py @@ -133,7 +133,7 @@ def _generate_jwt_token(self): token = jwt.encode({ 'id': self.pk, - 'exp': int(dt.strftime('%s')) + 'exp': int(dt.timestamp()) }, settings.SECRET_KEY, algorithm='HS256') return token.decode('utf-8')