Once I tried that my_timegm replacement code and it did not work as it should. Something still was in localtime. It was either on Linux itself or on Cygwin.