dotkpay Posted August 1, 2011 Share Posted August 1, 2011 Hello, I just encountered a problem, August is here and its presenting a big problem for my scripts, my scripts don't seem to work well with time when the month is equal to or greater than 8. But when I backdate the month to July they work all fine. I looked it up and I found its something to do with bases. Could any one please explain the problem? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/243444-date-8-month/ Share on other sites More sharing options...
voip03 Posted August 1, 2011 Share Posted August 1, 2011 check your syntax Quote Link to comment https://forums.phpfreaks.com/topic/243444-date-8-month/#findComment-1250079 Share on other sites More sharing options...
ignace Posted August 1, 2011 Share Posted August 1, 2011 Post your (relevant) code. Quote Link to comment https://forums.phpfreaks.com/topic/243444-date-8-month/#findComment-1250140 Share on other sites More sharing options...
PFMaBiSmAd Posted August 1, 2011 Share Posted August 1, 2011 Leading zero's on numbers in php cause them to be treated as octal. 08, '08', 09, and '09' are not valid octal numbers. Quote Link to comment https://forums.phpfreaks.com/topic/243444-date-8-month/#findComment-1250176 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.