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 11# Changelog
22
3+ ## 7.1.7 (2017-09-27)
4+
5+ * 修复从时间戳获取rfc http格式的时间字符串问题
6+
37## 7.1.6 (2017-09-26)
48
59* 给 ` put_file ` 功能增加保持本地文件Last Modified功能,以支持切换源站的客户CDN不回源
Original file line number Diff line number Diff line change 99
1010# flake8: noqa
1111
12- __version__ = '7.1.6 '
12+ __version__ = '7.1.7 '
1313
1414from .auth import Auth , QiniuMacAuth
1515
Original file line number Diff line number Diff line change @@ -167,6 +167,6 @@ def rfc_from_timestamp(timestamp):
167167 Args:
168168 timestamp: 整型Unix时间戳(单位秒)
169169 """
170- last_modified_date = datetime .fromtimestamp (timestamp )
170+ last_modified_date = datetime .utcfromtimestamp (timestamp )
171171 last_modified_str = last_modified_date .strftime ('%a, %d %b %Y %H:%M:%S GMT' )
172172 return last_modified_str
You can’t perform that action at this time.
0 commit comments