Why do I get a "Day too big" error from Perl?
Posted
by azp74
on Stack Overflow
See other posts from Stack Overflow
or by azp74
Published on 2010-03-30T04:39:35Z
Indexed on
2010/03/30
17:13 UTC
Read the original article
Hit count: 296
I have been helping someone debug some code where the error message was "Day too big". I know that this springs from localtime and the Y2038 bug (most google results appear to be people dealing with cookies expiring well into the future).
We appear to have 'fixed' the problem by using time to get the current date. However, given that none of our original dates should have hit the 2038 issue I'm sceptical that we've actually fixed the problem ...
Are there other instances that anyone knows of where one would hit "day too big"?
OS is Solaris.
Sample code - the actual code is quite large and the person I'm working with hasn't actually isolated the offending part (which is why I'm worried the 'fix' is not actually a fix). If I can put together something concise which reproduces the issue I will post!
© Stack Overflow or respective owner