Call tzset before localtime_r as required by POSIX
Call tzset before localtime_r as required by POSIX

Otherwise localtime_r() may not respect the current TZ setting.

Signed-off-by: Rob Browning <1dc5917c2adeeba13d1ef33dbb40691a1b67cc65@defaultvalue.org>
Tested-by: Rob Browning <1dc5917c2adeeba13d1ef33dbb40691a1b67cc65@defaultvalue.org>
Reviewed-by: David Kettler <16561b76cd042e6ea2480e779d349541d0b60746@internode.on.net>

ToxicFrog/bup,tjanez/bup,tjanez/bup,mhoeher/bup,gevaerts/bup,ToxicFrog/bup,gevaerts/bup,mhoeher/bup,tjanez/bup,mhoeher/bup,ToxicFrog/bup,mhoeher/bup,gevaerts/bup,gevaerts/bup,gevaerts/bup,mhoeher/bup,tjanez/bup,tjanez/bup,ToxicFrog/bup,tjanez/bup,ToxicFrog/bup,mhoeher/bup