Correctly use timezone when tm_gmtoff is not available on the system.