perl/Git.pm: fix get_tz_offset to properly handle DST boundary cases