Python 2.7.8, I call:
import datetime
print datetime.datetime.fromtimestamp(10)
But there are different results depending on operating system:
- 1970-01-01 01:00:10 - Linux
- 1970-01-01 00:00:10 - Windows
So there is one hour shift. Is this a known issue? Is there any way to unify returned value, so that result is same on different OSes?
Do you have any timezone differences?
https://docs.python.org/2/library/datetime.html
Have a look at the tzinfo in the datetime library docs, I wonder if that is different