OK, I've checked in a set of patches that remove some of the remaining cruft concerning timezones, so that localtime.c handles more stuff. Corinna's test program works fine now, with and without TZ set. Look for it in an upcoming snapshot.