fix #23
This commit is contained in:
parent
d81e3e781b
commit
0fd75c5517
@ -1,6 +1,6 @@
|
|||||||
# Toxygen
|
# Toxygen
|
||||||
|
|
||||||
Toxygen is powerfull cross-platform [Tox](https://tox.chat/) client written in pure Python3.
|
Toxygen is powerful cross-platform [Tox](https://tox.chat/) client written in pure Python3.
|
||||||
|
|
||||||
[![Release](https://img.shields.io/github/release/xveduk/toxygen.svg?style=flat)](https://github.com/toxygen-project/toxygen/releases/latest)
|
[![Release](https://img.shields.io/github/release/xveduk/toxygen.svg?style=flat)](https://github.com/toxygen-project/toxygen/releases/latest)
|
||||||
[![Stars](https://img.shields.io/github/stars/xveduk/toxygen.svg?style=flat)](https://github.com/toxygen-project/toxygen/stargazers)
|
[![Stars](https://img.shields.io/github/stars/xveduk/toxygen.svg?style=flat)](https://github.com/toxygen-project/toxygen/stargazers)
|
||||||
|
@ -31,7 +31,8 @@ def copy(src, dest):
|
|||||||
|
|
||||||
|
|
||||||
def convert_time(t):
|
def convert_time(t):
|
||||||
sec = int(t) - time.timezone
|
offset = time.timezone - time.daylight * 3600
|
||||||
|
sec = int(t) - offset
|
||||||
m, s = divmod(sec, 60)
|
m, s = divmod(sec, 60)
|
||||||
h, m = divmod(m, 60)
|
h, m = divmod(m, 60)
|
||||||
d, h = divmod(h, 24)
|
d, h = divmod(h, 24)
|
||||||
|
Loading…
Reference in New Issue
Block a user