diff --git a/djangoblog/settings.py b/djangoblog/settings.py index 54b00be..fa970b5 100644 --- a/djangoblog/settings.py +++ b/djangoblog/settings.py @@ -153,7 +153,7 @@ USE_I18N = True 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 6c87a2b..1f4cb04 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))