chiark / gitweb /
Fix for dst/non-dst timezones
authorIvan Kurnosov <zerkms@zerkms.com>
Sun, 17 Sep 2017 11:09:38 +0000 (23:09 +1200)
committerSven Eden <yamakuzure@gmx.net>
Sun, 17 Sep 2017 11:09:38 +0000 (23:09 +1200)
commitbe101abd86d769b320fd6d40ff73e881474ca462
tree6771be603dcd977b463ec753d66c1a4ec6a71ce5
parentefe895b1793a20171f70ca0781a5194caa3f17d8
Fix for dst/non-dst timezones

The problem was with the tm.tm_isdst that is set to the current environment
value: either DST or not. While the current state is not relevant to the state
in the desired date.

Hence — it should be reset so that the mktime_or_timegm could normalise it
later.
src/basic/time-util.c