File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 7.1.7 (2017-09-27)
4
+
5
+ * 修复从时间戳获取rfc http格式的时间字符串问题
6
+
3
7
## 7.1.6 (2017-09-26)
4
8
5
9
* 给 ` put_file ` 功能增加保持本地文件Last Modified功能,以支持切换源站的客户CDN不回源
Original file line number Diff line number Diff line change 9
9
10
10
# flake8: noqa
11
11
12
- __version__ = '7.1.6 '
12
+ __version__ = '7.1.7 '
13
13
14
14
from .auth import Auth , QiniuMacAuth
15
15
Original file line number Diff line number Diff line change @@ -167,6 +167,6 @@ def rfc_from_timestamp(timestamp):
167
167
Args:
168
168
timestamp: 整型Unix时间戳(单位秒)
169
169
"""
170
- last_modified_date = datetime .fromtimestamp (timestamp )
170
+ last_modified_date = datetime .utcfromtimestamp (timestamp )
171
171
last_modified_str = last_modified_date .strftime ('%a, %d %b %Y %H:%M:%S GMT' )
172
172
return last_modified_str
You can’t perform that action at this time.
0 commit comments