We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 676dbab commit 481332aCopy full SHA for 481332a
src/backend/services/web/tool/executor/auth.py
@@ -20,7 +20,7 @@
20
import hashlib
21
import hmac
22
import json
23
-from datetime import datetime, timezone
+from datetime import datetime
24
from typing import Dict, Union
25
from urllib.parse import urlparse
26
@@ -140,7 +140,7 @@ def apply_auth(
140
path = self.path
141
142
# Date 头需使用 UTC 时间并标注 GMT
143
- date = datetime.now(timezone.utc).strftime('%a, %d %b %Y %H:%M:%S GMT')
+ date = datetime.now().strftime('%a, %d %b %Y %H:%M:%S GMT')
144
145
# 生成签名
146
signature = self._generate_signature(method, path, date)
0 commit comments