Muddled months when adding task

Chris Hastie <[email protected]>
Newsgroups gmane.comp.horde.nag
Message-ID <[email protected]>
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

-- 
Nag mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.