Summary of where I'm at: I've been on a quest for tzset. I have been trying to install SVG::TT::Graph and when I do it bombs out with
t/02_basic.t ........... 1/85 POSIX::tzset not implemented on this architecture at blib/lib/SVG/TT/Graph/TimeSeries.pm line 582, <DATA> line 593. # Looks like your test exited with 255 just after 72.
and apparently that error is correct, since I found over on stackexchange
TL;DR: Starting with Perl v5.8.9 (released in 2011) calling tzset when changing $ENV{TZ} isn't needed anymore.
The actual culprit is SVG::TT::Graph::TimeSeries. Which has
Format string for presenting the X axis labels. The POSIX strftime() function is used for formatting after calling the POSIX tzset() function with the timezone specified in timescale_time_zone if present (see strftime man pages and LC_TIME locale information).
Any suggestions of what the right thing to do is? Should I contact the author of SVG::TT::Graph::TimeSeries and point out the problem? I don't think CPAN is like wikipedia and i can change it myself and make an updated version.

I have the .pm code here and so I suppose I could edit the offending call out of it and just install it locally. But I don't know how version-tracking and such goes. Here's the code in SVG::TT::Graph::TimeSeries:

# Need to set the timezone in order for x-axis labels to be # formatted correctly by strftime: $ENV{'TZ'} = $self->{config}->{timescale_time_zone}; POSIX::tzset();
one "#" edited into the file and a config and gmake and I *think* I'd have a local copy that'd work. But what would the cpan database think? It thinks I have v1.88, but I can't find the version number anywhere in the .pm file. I'm just not sure what to do about this.

In reply to tzset and POSIX by BernieC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.