Skip to content

Commit 481332a

Browse files
committed
feat: 事件调查报告二期优化-风险列表增加是否生成调查报告列 --story=131028441
1 parent 676dbab commit 481332a

File tree

1 file changed

+2
-2
lines changed
  • src/backend/services/web/tool/executor

1 file changed

+2
-2
lines changed

src/backend/services/web/tool/executor/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import hashlib
2121
import hmac
2222
import json
23-
from datetime import datetime, timezone
23+
from datetime import datetime
2424
from typing import Dict, Union
2525
from urllib.parse import urlparse
2626

@@ -140,7 +140,7 @@ def apply_auth(
140140
path = self.path
141141

142142
# Date 头需使用 UTC 时间并标注 GMT
143-
date = datetime.now(timezone.utc).strftime('%a, %d %b %Y %H:%M:%S GMT')
143+
date = datetime.now().strftime('%a, %d %b %Y %H:%M:%S GMT')
144144

145145
# 生成签名
146146
signature = self._generate_signature(method, path, date)

0 commit comments

Comments
 (0)