gerkintrigg Posted August 1, 2007 Share Posted August 1, 2007 I'm curious what's going on with my calendar script. It's displaying the fact that February is a leap year next year, but then going on to the first of the following month. - See for yourself at: http://www.tichbornes.co.uk/availability_check.php If you want code, I can let you have it, but there's quite a lot of it and I don't know where to begin. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/62814-solved-leap-year-on-a-calendar/ Share on other sites More sharing options...
mrjcfreak Posted August 1, 2007 Share Posted August 1, 2007 It's impossible to tell what's going on if you don't provide any code.. and the link you point to is an infinite table which nicely crashes my browser! A quick look at the manual shows that there is a function to tel if it's a leap year: (date("L",{timestamp of any date in year you want to check})) == 1) ? which might be a good place to start. Quote Link to comment https://forums.phpfreaks.com/topic/62814-solved-leap-year-on-a-calendar/#findComment-312680 Share on other sites More sharing options...
GingerRobot Posted August 1, 2007 Share Posted August 1, 2007 Yeah, i think we are going to need to see some code. You have other issues too - according to your calender, the 1st of August(today) is a sunday. Also, there is a missing day between each end and start of the month. On your calender, August finishes on a monday, and September starts on a wednesday. Quote Link to comment https://forums.phpfreaks.com/topic/62814-solved-leap-year-on-a-calendar/#findComment-312690 Share on other sites More sharing options...
gerkintrigg Posted August 1, 2007 Author Share Posted August 1, 2007 Sorry about that. It should now be sorted. I was just doing some weird stuff with the $e_date variable... I'll bear that in mind for the leap-year thing, but I don't think it's needed at the moment. Quote Link to comment https://forums.phpfreaks.com/topic/62814-solved-leap-year-on-a-calendar/#findComment-312694 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.