Bug found in eb_articlelist

In the news.php file, I think I found a bug. Its around line 15:

$first=mktime(0,0,0,$month,1,$year); $last=mktime(23,59,59,$month,31,$year);

For $last, it doesn't take in to account months that don't have 31 days. I modified it to this:

$num_days_in_this_month = date("t", mktime(0,0,0,$month,1,$year));
$first=mktime(0,0,0,$month,1,$year);
$last=mktime(23,59,59,$month,$num_days_in_this_month,$year);

Anyone else notice this? I did a search and it didn't bring anything up.

eggbuser - 8:25pm, 3 March 2010


Submit a post to this topic

You are not logged in.

Log In



Forum

Mods and Licensing
Hi Egg, Its been a while, but I noticed some user...
F4ris @ 3:39pm, 8 September 2010

Need search engine friend...
Hi again, I have managed to have a look through m...
F4ris @ 11:47am, 8 September 2010

Can't create article...
Hi all, I just downloaded and installed Eggblog, ...
Daniel @ 1:30pm, 21 August 2010

Any more Templates and CS...
Another simple modified eggBlog in action http://w...
wL @ 6:09pm, 17 August 2010

Why can't open the l...
I just review some website link,but unfortunatly,i...
fansi123 @ 8:26am, 13 July 2010

Sourceforge

Download bandwidth is kindly supplied by sourceforge.net.

Donations

Donating to the eggBlog project is a great way to say thanks and to keep security updates and this website going.

Web Design

This project is supported by tenfourzero.net, freelance web design and development.