substitute the result for offset_mins, otherwise offset_mins is integer 0. convert elements of tzinfo from indexes 1 to 3 to an integer, multiply it by integer 60 and increment it by offset_mins,
offset = 60 * int ( tzinfo [ 1 : 3 ] ) + offset_mins