X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..d25a3a166a0ec2e730a126c23f8855876384607c:/src/pdcounter/templatetags/time_tags.py diff --git a/src/pdcounter/templatetags/time_tags.py b/src/pdcounter/templatetags/time_tags.py old mode 100755 new mode 100644 index 7ea5c6055..98d516c4b --- a/src/pdcounter/templatetags/time_tags.py +++ b/src/pdcounter/templatetags/time_tags.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -11,6 +10,7 @@ from django.utils import timezone register = template.Library() + @register.filter def date_to_utc(date, day_end=False): """ Converts a datetime.date to UTC datetime.