Re: [PATCH 2/3] Fix get_tz_offset to properly handle DST boundary cases

2013-02-09 Thread Junio C Hamano
Ben Walton writes: > When passed a local time that was on the boundary of a DST change, > get_tz_offset returned a GMT offset that was incorrect (off by one > hour). This is because the time was converted to GMT and then back to > a time stamp via timelocal() which cannot disambiguate boundary c

[PATCH 2/3] Fix get_tz_offset to properly handle DST boundary cases

2013-02-09 Thread Ben Walton
When passed a local time that was on the boundary of a DST change, get_tz_offset returned a GMT offset that was incorrect (off by one hour). This is because the time was converted to GMT and then back to a time stamp via timelocal() which cannot disambiguate boundary cases as noted in its document