This is done by setting the TZ variable prior to calling localtime() or ctime(). There are a few calls to ctime()/localtime() which doesn’t adjust for time zone offset. This patch affects the behavior of these since the TZ variable is global.
Yes, this breaks backwards compatibility, so what? It's already broken with network stuff anyway.
Signed-off-by: Uli Schlachter <psychon@znc.in>