fix time in log
This commit is contained in:
parent
8214d37d21
commit
866b23650e
1 changed files with 3 additions and 3 deletions
|
@ -1297,9 +1297,9 @@ class ConversationTextview(GObject.GObject):
|
||||||
# get difference in days since epoch (86400 = 24*3600)
|
# get difference in days since epoch (86400 = 24*3600)
|
||||||
# number of days since epoch for current time (in GMT) -
|
# number of days since epoch for current time (in GMT) -
|
||||||
# number of days since epoch for message (in GMT)
|
# number of days since epoch for message (in GMT)
|
||||||
diff_day = int(timegm(time.localtime())) / 86400 -\
|
diff_day = int(int(timegm(time.localtime())) / 86400 -\
|
||||||
int(timegm(tim)) / 86400
|
int(timegm(tim)) / 86400)
|
||||||
if diff_day == 0:
|
if diff_day == 0.0:
|
||||||
day_str = ''
|
day_str = ''
|
||||||
else:
|
else:
|
||||||
#%i is day in year (1-365)
|
#%i is day in year (1-365)
|
||||||
|
|
Loading…
Add table
Reference in a new issue