From 74f1b51b38059fe300cb80090abf378ed9109e51 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Fri, 2 Jul 2021 22:11:50 +0200 Subject: [PATCH] Use annotated_date also for updated datetimes This changes the text from: Updated 5 months, 1 week ago to: Updated 2021-01-24 00:33 (5 months, 1 week ago) Co-authored-by: Jeremy Stretch --- netbox/templates/generic/object.html | 2 +- netbox/templates/users/userkey.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/templates/generic/object.html b/netbox/templates/generic/object.html index 648a936e0..e7424aa56 100644 --- a/netbox/templates/generic/object.html +++ b/netbox/templates/generic/object.html @@ -43,7 +43,7 @@

Created {{ object.created|annotated_date }} · - Updated {{ object.last_updated|timesince }} ago + Updated {{ object.last_updated|annotated_date }} ({{ object.last_updated|timesince }} ago) {{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}

diff --git a/netbox/templates/users/userkey.html b/netbox/templates/users/userkey.html index 95e9846db..a024ee352 100644 --- a/netbox/templates/users/userkey.html +++ b/netbox/templates/users/userkey.html @@ -22,7 +22,7 @@

Created {{ object.created|annotated_date }} · - Updated {{ object.last_updated|timesince }} ago + Updated {{ object.last_updated|annotated_date }} ({{ object.last_updated|timesince }} ago)

{% if not object.is_active %}