[nag] Muddled months when adding task

Chris Hastie lists@oak-wood.co.uk
Sat, 31 Aug 2002 10:54:31 +0100


Having just grabbed and installed the Nag from CVS this morning, I found 
some odd behaviour with the month list when adding a task. Several 
months appeared twice, whilst several didn't appear at all.

The HTML looked thus:

<option value="1">January</option><option 
value="2">March</option><option value="3">March</option><option 
value="4">May</option><option value="5">May</option><option 
value="6">July</option><option value="7">July</option><option 
value="8">August</option><option value="9" 
selected="selected">October</option><option 
value="10">October</option><option value="11">December</option><option 
value="12">December</option>

Editing line 250 of Nag.php from

             $html .= strftime('%B', mktime(0, 0, 0, $month)) . '</option>';

to

             $html .= strftime('%B', mktime(0, 0, 0, $month, 1)) . '</option>';

seems to have sorted on my installation at least.
-- 
Chris Hastie