I'm a bit confused by the daylight savings handling
settings.py:
TIME_ZONE = 'Europe/London'
USE_TZ = True
in the django shell:
>>> from django.utils import timezone
>>> import datetime
>>> print timezone.now()
2012-05-28 11:19:42.897000+00:00
>>> print timezone.make_aware(datetime.datetime.now(),timezone.get_default_timez
one())
2012-05-28 12:20:03.224000+01:00
why are they not the same with respect to daylight savings? Both should be locale aware, no?
I've read the docs but am none the wiser.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…