From 5f8fa045673edb79e14f1d8fbf5d3ad8e11fd6d5 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 6 May 2026 18:31:58 +0100 Subject: [PATCH] [presto] show purchased at as date --- presto/records_on_the_day.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presto/records_on_the_day.py b/presto/records_on_the_day.py index b7716a3e..2f3ecc44 100644 --- a/presto/records_on_the_day.py +++ b/presto/records_on_the_day.py @@ -1221,7 +1221,7 @@ def _measure_detail_content(rec): # Purchased at purchased_at = rec.get("purchased_at", "") if purchased_at: - purch_str = "Purchased: " + display_text(str(purchased_at)) + purch_str = "Purchased: " + display_text(str(purchased_at)[:10]) h += _measure_detail_text_height(purch_str) _detail_content_height = h @@ -1413,7 +1413,7 @@ def _draw_detail_info_below_cover(rec, y): # Purchased at purchased_at = rec.get("purchased_at", "") if purchased_at: - purch_str = "Purchased: " + display_text(str(purchased_at)) + purch_str = "Purchased: " + display_text(str(purchased_at)[:10]) y = _draw_detail_text_line(purch_str, y, _pen_dim_text) return y