python: utcfromtimestamp vs fromtimestamp, when the timestamp is based on utcnow()
问题 Pretty sure it's an easy one but I don't get it. My local TZ is currently GMT+3, and when I take timestamp from datetime.utcnow().timestamp() it is indeed giving me 3 hours less than datetime.now().timestamp() During another process in my flow, I take that utc timestamp and need to turn it into datetime. When I'm doing fromtimestamp I get the right utc hour, but when I'm using utcfromtimestamp I get another 3 hours offset. The documentation, though, asks me to use fromtimestamp for local