Re: [PHP-GTK] weird GtkCalendar problem
[email protected] (Rich Payne)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 29 Jul 2001, Daniel Adams wrote: > I have a GtkCalendar in my dialog. If I clearly date and call > $cal->get_date (); it month one less than it should be. For instance, if > I select october 31, 2001 it returns > > Array > ( > [0] => 2001 > [1] => 9 > [2] => 31 > ) > > Anyone know how to fix this? I would say that it's not broken. GTK+ was written in C, and in C everything starts at 0 (zero) not 1. So January would be 0, making October 9. A little different, but working normally I expect. --rdp -- Rich Payne [email protected] www.alphalinux.org