Blob Blame History Raw
From 99ed1bd184fe9ef2027d96ac1a4ef235fa08bdee Mon Sep 17 00:00:00 2001
From: Chenxiong Qi <qcxhome@gmail.com>
Date: Mon, 14 Jun 2021 12:33:35 +0800
Subject: [PATCH 3/4] Use utcnow for JANRAIN_NONCE

The OpenIdStore.useNonce uses non-local time.

Signed-off-by: Chenxiong Qi <qcxhome@gmail.com>
---
 social_core/tests/backends/test_livejournal.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social_core/tests/backends/test_livejournal.py b/social_core/tests/backends/test_livejournal.py
index 33859a54..30d1f661 100644
--- a/social_core/tests/backends/test_livejournal.py
+++ b/social_core/tests/backends/test_livejournal.py
@@ -8,7 +8,7 @@ from ...exceptions import AuthMissingParameter
 from .open_id import OpenIdTest
 
 
-JANRAIN_NONCE = datetime.datetime.now().strftime('%Y-%m-%dT%H:%M:%SZ')
+JANRAIN_NONCE = datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')
 
 
 class LiveJournalOpenIdTest(OpenIdTest):
-- 
2.31.1