diff --git a/qgis-app/plugins/templates/plugins/plugins.xml b/qgis-app/plugins/templates/plugins/plugins.xml index 275bb44b..cf28e89f 100644 --- a/qgis-app/plugins/templates/plugins/plugins.xml +++ b/qgis-app/plugins/templates/plugins/plugins.xml @@ -1,4 +1,4 @@ -{% load static %} +{% load static %}{% load local_timezone %} {% for version in object_list %} @@ -14,8 +14,8 @@ {% if request.is_secure %}https{% else %}http{% endif %}://{{ request.get_host }}{{ version.get_download_url }} - {{ version.plugin.created_on.isoformat }} - {{ version.created_on.isoformat }} + {{ version.plugin.created_on|local_timezone:"WITH-UTC" }} + {{ version.created_on|local_timezone:"WITH-UTC" }} {% if version.experimental %}True{% else%}False{% endif %} {{ version.plugin.deprecated }} diff --git a/qgis-app/plugins/templatetags/local_timezone.py b/qgis-app/plugins/templatetags/local_timezone.py index 8463a9be..835e7c82 100644 --- a/qgis-app/plugins/templatetags/local_timezone.py +++ b/qgis-app/plugins/templatetags/local_timezone.py @@ -13,6 +13,8 @@ def local_timezone(date, args="LONG"): result = '%s' % (utcdate,) elif args and str(args) == "SHORT_NATURAL_DAY": result = '%s' % (utcdate,) + elif args and str(args) == "WITH-UTC": + result = utcdate else: result = '%s' % (utcdate,) except AttributeError: