Re: weird GtkCalendar problem
| From: | Rich Payne | Date: | Mon, 30 Jul 2001 00:56:54 +0000 |
| Subject: | Re: weird GtkCalendar problem | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2383@lists.php.net to get a copy of this message | ||
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
rpayne@alphalinux.org www.alphalinux.org