So, as far as I understand if you convert without a timezone from or to a unix-timestamp you will always get GMT/UTC, like this:
import datetime
import pytz
datetime.datetime(2020,4,1,0,0,0).timestamp()
The resulting timestamp is 1585692000
.
Now if I do this:
(pytz.timezone("Europe/Berlin").localize(datetime.datetime(2020,4,1,0,0,0))).timestamp()
It yields the same unix-timestamp.
If I enter a datetime and tell the program that this datetime has the timezone GMT+1 then its UTC value should be offset by 1 hour, and since a unix-timestamp is always UTC it should be different as well, but it's the same.
Why? Which of my assumptions is wrong?