I am doing some timezone conversions, and I get really weird results. Basically converting between timezones that differ only by whole hours, I still get non-whole results. For example:
from datetime import datetime
from pytz import timezone
datetime(2013, 12, 27, 20, 0, 0, tzinfo=timezone('Europe/Bucharest'))\
.astimezone(timezone('Europe/Berlin')).replace(tzinfo=None)
gives me
datetime.datetime(2013, 12, 27, 19, 16)
(time difference between Bucharest and Berlin is 1 hour, so I should get 19:00 - instead I get 19:16)
I'm probably missing something really obvious, but I can't figure it out. What am I doing wrong?