kazeburo/Apache-LogFormat-Compiler — pull request #4 by dex4er (2014-01-06 08:40:21+00:00)
Title: POSIX::tzset not implemented on Windows

Windows has limited POSIX support. I.e. POSIX::tzset is not implemented. Even that, you can change the timezone only once on one subprocess.

I suggest to disable TZ tests if POSIX::tzset fails.

There is possibility to make these tests working on Windows. You can check https://github.com/dex4er/perl-POSIX-strftime-GNU/blob/master/t/120_tmzone.t but it is really weird and you need to use some Windows' quirks.

BTW, there is still risk that particular timezone is not implemented on the system. You can detect if it really works as you can see in my example and skip the test in such case. As far as I remember, some Solarises doesn't prove the whole set of timezone data.

Another solution to consider: just skip all tz tests unless ran on Linux :)