Working on ticket #29984, I noticed that the following raises:
from datetime import datetime
from django.utils.timezone import make_aware
euberlin = pytz.timezone('Europe/Berlin')s a
dt1 = datetime(2018, 10, 24, tzinfo=euberlin)
dt2 = make_aware(datetime(2018, 10, 24))
It is certainly necessary to have make_aware, because datetime may come in without a timezone. I'm familiar with the various solutions - user picks a timezone in their profile, and/or JavaScript detects the timezone in the browser and provides that to the backend at some point. I'm even urging a coworker to fix his public Django webapp to implement the latter solution.
However, it is disturbing that the datetimes are not equal. Can someone explain why not?