apply UTC offset during timestamp conversion
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 26 Apr 2019 07:47:30 +0000 (09:47 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 26 Apr 2019 14:29:43 +0000 (16:29 +0200)
commit52554fd10f66af6c2118babc6e63b14163e5ef65
treeade10f82804ad5f8f6c858b12a94a36d19128446
parenta71d41c613ec169178b737c2822fd54e9dfef60b
apply UTC offset during timestamp conversion

Glibc strptime(3) does not automatically apply the UTC offset
when present but stores it in the member tm_gmtoff. (Probably
because the standard mandates different, insufficient means
of timezone handling that need to be supported for portability.)

Thus we do that right in the constructor immediately after we
have obtained a valid struct tm.
src/timefunc.cpp
test/test_timefunc.cpp