This commit is contained in:
ingvar1995 2016-08-30 20:23:55 +03:00
parent d81e3e781b
commit 0fd75c5517
2 changed files with 3 additions and 2 deletions

View file

@ -31,7 +31,8 @@ def copy(src, dest):
def convert_time(t):
sec = int(t) - time.timezone
offset = time.timezone - time.daylight * 3600
sec = int(t) - offset
m, s = divmod(sec, 60)
h, m = divmod(m, 60)
d, h = divmod(h, 24)