Merge pull request #741 from liangliangyy/dev

关闭时区
sh_branch
且听风吟 1 year ago committed by GitHub
commit cff986b7e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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/

@ -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))

Loading…
Cancel
Save