Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Update: See my second reply below.

Old Update: This is a bug in old versions of the POSIX module: see here, for example. I see this bug with Perl 5.8.0, but not with 5.8.6. (I don't know exactly which version fixed it.) Is upgrading an option for you? If not, you might have to use one of those other modules after all...

PPS. Looks like downgrading would also fix it: it's working properly in 5.6.2.

PPPS. But don't upgrade too much! I get the bug again with 5.8.7. This is very odd. Maybe it's affected by the build options or something, but I can't see an obvious pattern.

I can only offer the faintly unhelpful "it works for me": with your code I get:

Tue Nov 1 17:16:55 2005 Tue 01 Nov 2005 17:16:55 CST Tue Nov 1 18:16:55 2005 Tue 01 Nov 2005 18:16:55 EST
which seems reasonable. I can only suppose the problem is with your system rather than with Perl. What do you get if you do
env TZ=America/New_York date env TZ=America/Chicago date
in the shell?

Also, do you get the correct offset if you add %z to your strftime format?


In reply to Re: TimeZoning oddities by robin
in thread TimeZoning oddities by JPaul

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found