From 866b23650ed79fdcd2d76a4264baa120d3d43bbc Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 3 Jan 2013 21:34:19 +0400 Subject: [PATCH] fix time in log --- src/conversation_textview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conversation_textview.py b/src/conversation_textview.py index fcfaf835d..db4956a82 100644 --- a/src/conversation_textview.py +++ b/src/conversation_textview.py @@ -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)