Use local math for timezone offset to avoid problems with tzinfo