Skip to content
Snippets Groups Projects
Commit c62bf15c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[Jim++] handle correctly messages older than a month (see #1169)

parent 8862daa3
No related branches found
No related tags found
No related merge requests found
......@@ -549,13 +549,13 @@ def print_conversation_line(self, text, jid, kind, name, tim,
if gajim.config.get('print_time') == 'always':
before_str = gajim.config.get('before_time')
after_str = gajim.config.get('after_time')
msg_day = time.strftime('%d', tim)
day = time.strftime('%d')
msg_day = time.strftime('%j', tim)
day = time.strftime('%j')
diff_day = 0
while day != msg_day:
diff_day += 1
before_tim = time.localtime(time.time()-24*3600*diff_day)
day = time.strftime('%d', before_tim)
day = time.strftime('%j', before_tim)
if diff_day == 0:
day_str = ''
elif diff_day == 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment