fix handling of negative offsets in timezone spec strings
authorRich Felker <dalias@aerifal.cx>
Fri, 10 Oct 2014 03:44:02 +0000 (23:44 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 30 Mar 2015 05:15:45 +0000 (01:15 -0400)
commit02ccece69864c006bafd9c318402195c9d48aa4d
treee6565b951ac39beff3d0f319eb93b3e00ebd5b95
parent9882dc933dd7e3cc6bf645153778c7ef48032018
fix handling of negative offsets in timezone spec strings

previously, the hours were considered as a signed quantity while
minutes and seconds were always treated as positive offsets. however,
semantically the '-' sign should negate the whole hh:mm:ss offset.
this bug only affected timezones east of GMT with non-whole-hours
offsets, such as those used in India and Nepal.

(cherry picked from commit 08b996d180323775d5457944eefbb8a51ea72539)
src/time/__tz.c