Intermittent problems are always the worst. Before we go too far, I'm suspecting that you're using mod_perl here - is that right? Do you set $Date::Manip::Cnf{"UpdateCurrTZ"} to true? That's the only scenario under which my perusal of the code says that this failure could occur. So perhaps the short-term fix is to stop using mod_perl ;-)

The next step may be to put a stack trace in Date::Manip::Date_Init to see who is calling it and when (and why). At some point, some bad value must be getting into $Curr{"y"}, and then things get screwed up from there. A stack trace there may help pinpoint things, though it'll likely completely overwhelm your apache error log (assuming you're throwing your stack trace to stderr, which makes more sense than stdout!), so you may want to create a new log file. The key here is to catch the transition from good to bad, and what happens at that point. I'm not sure what to expect, but that's the next step I'd be looking at.


In reply to Re: obscure/random input Date::Manip errors by Tanktalus
in thread obscure/random input Date::Manip errors by ksublondie

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.