Perl "Day too big" - root cause
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
4:43 UTC
Read the original article
Hit count: 376
perl
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"?
© Stack Overflow or respective owner