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 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 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. 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. Link to comment https://forums.phpfreaks.com/topic/243444-date-8-month/#findComment-1250176 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.