diff --git a/djangoblog/settings.py b/djangoblog/settings.py index 54b00be2..fa970b52 100644 --- a/djangoblog/settings.py +++ b/djangoblog/settings.py @@ -153,7 +153,7 @@ def env_to_bool(env, default): USE_L10N = True -USE_TZ = True +USE_TZ = False # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.10/howto/static-files/ diff --git a/owntracks/views.py b/owntracks/views.py index 6c87a2bf..1f4cb041 100644 --- a/owntracks/views.py +++ b/owntracks/views.py @@ -104,7 +104,6 @@ def get_datas(request): date = list(map(lambda x: int(x), request.GET.get('date').split('-'))) querydate = django.utils.timezone.datetime( date[0], date[1], date[2], 0, 0, 0) - querydate = django.utils.timezone.make_aware(querydate) nextdate = querydate + datetime.timedelta(days=1) models = OwnTrackLog.objects.filter( creation_time__range=(querydate, nextdate))