fix time in log

This commit is contained in:
Denis Fomin 2013-01-03 21:34:19 +04:00
parent 8214d37d21
commit 866b23650e
1 changed files with 3 additions and 3 deletions

View File

@ -1297,9 +1297,9 @@ class ConversationTextview(GObject.GObject):
# 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 message (in GMT)
diff_day = int(timegm(time.localtime())) / 86400 -\
int(timegm(tim)) / 86400
if diff_day == 0:
diff_day = int(int(timegm(time.localtime())) / 86400 -\
int(timegm(tim)) / 86400)
if diff_day == 0.0:
day_str = ''
else:
#%i is day in year (1-365)