Skip to content

Commit

Permalink
fix: syslog timezone float (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-gao authored Jan 14, 2025
1 parent d7a8189 commit 4bc13ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aliyun/log/ext/syslogclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def datetime2rfc3339(dt, is_utc=False):
# calculating timezone
d1 = datetime.now()
d2 = datetime.utcnow()
diff_hr = (d1 - d2).seconds / 60 / 60
diff_hr = round((d1 - d2).seconds / 60 / 60)
tz = ""

if diff_hr == 0:
Expand Down
2 changes: 1 addition & 1 deletion aliyun/log/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.9.13'
__version__ = '0.9.14'

import sys
OS_VERSION = str(sys.platform)
Expand Down

0 comments on commit 4bc13ee

Please sign in to comment.