When running the following code:
d = datetime.datetime(2014, 1, 1, 8)
print d.replace(tzinfo=pytz.timezone('Asia/Jerusalem'))
I expect it to print 2014-01-01 08:00:00+02:00
, but instead it prints 2014-01-01 08:00:00+02:21
(notice the strange timezone). Can someone please explain to me this strange behavior?
BTW when I print pytz.timezone('Asia/Jerusalem').localize(d)
, it prints '2014-01-01 08:00:00+02:00' as expected.