summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/ui/render.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/poezio/ui/render.py b/poezio/ui/render.py
index c85d3cc5..633ac2a0 100644
--- a/poezio/ui/render.py
+++ b/poezio/ui/render.py
@@ -1,6 +1,9 @@
import curses
-from datetime import datetime
+from datetime import (
+ datetime,
+ date,
+)
from functools import singledispatch
from math import ceil, log10
from typing import (
@@ -235,7 +238,7 @@ class PreMessageHelpers:
Write the date on the yth line of the window
"""
if time:
- if history:
+ if history and time.date() != date.today():
format = LONG_FORMAT
else:
format = SHORT_FORMAT