t_machine Posted May 28, 2009 Share Posted May 28, 2009 There seems to be a problem with time() function if I add many years. Example; $fifty_years_from_now = 1577846300+time(); If I do a date() on the variable I get 22/04/1923 echo date("d/m/Y", $fifty_years_from_now); What am I doing wrong? Thanks Quote Link to comment Share on other sites More sharing options...
waynew Posted May 28, 2009 Share Posted May 28, 2009 In 2038... http://en.wikipedia.org/wiki/Year_2038_problem Quote Link to comment Share on other sites More sharing options...
Michdd Posted May 28, 2009 Share Posted May 28, 2009 http://en.wikipedia.org/wiki/Year_2038_problem Edit: I'm late =\ Quote Link to comment Share on other sites More sharing options...
t_machine Posted May 28, 2009 Author Share Posted May 28, 2009 Thanks for the explanation Would this apply if I store my dates as DATETIME in mysql instead? Quote Link to comment Share on other sites More sharing options...
waynew Posted May 28, 2009 Share Posted May 28, 2009 I don't think so. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.