src: Add code in case struct tm.tm_gmtoff is not available