In my django application i'm confronting two datetime objects (self.dueDate is a date object):
ref_time = timezone.localtime(timezone.now(), timezone.get_default_timezone() )
threshold = datetime.combine( self.dueDate,
time(tzinfo=timezone.get_default_timezone()))
- timedelta(days = 1)
I'm constructing them to have the same timezone (which they have), but they end up having two different UTC offsets.
>>>print threshold, threshold.tzinfo
2015-03-13 12:08:00+00:50 Europe/Rome
>>>print ref_time, ref_time.tzinfo
2015-03-13 12:48:29.372984+01:00 Europe/Rome
Why is this happening? How can it be that there are two different offsets for the same tz? (and why would that offest be 50 minutes?)