X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/002577cf05a6730e8b1c97d1931d79758cbcbfdc..ae60b2a3949e96357477cc04f90fd0873cee8a92:/wolnelektury/utils.py?ds=sidebyside diff --git a/wolnelektury/utils.py b/wolnelektury/utils.py deleted file mode 100644 index ad5722201..000000000 --- a/wolnelektury/utils.py +++ /dev/null @@ -1,11 +0,0 @@ -import pytz -from django.utils import timezone -from django.conf import settings - -def localtime_to_utc(localtime): - return timezone.utc.normalize( - pytz.timezone(settings.TIME_ZONE).localize(localtime) - ) - -def utc_for_js(dt): - return dt.strftime('%Y/%m/%d %H:%M:%S UTC')