X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d7b11e4a01b2314c0527d94d91f3159c0bd34ce..ae60b2a3949e96357477cc04f90fd0873cee8a92:/wolnelektury/utils.py 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')