Here is the test code I used.
Returning a full date is more useful I think in most cases and as the
function return is different to the Gtk call anyway it seemed a very
simple addition. It replaces:
$date = $calendar->get_date();
$selected_date = $date[0].'-'.($date[1]+1).'-'.$date[3]; //messy :)
Yep, I know. I'm just not sure about how far to meddle here. Could do with more feedback...
Oh hear ye, PHP-GTK users and Andrei!
Tom wants to make GtkCalendar::get_date() return something that can be used with PHP's strtotime() function, e.g.'2005-12-10'. This to be the fourth element in what is currently a three-element array.
Good idea? Bad idea?
Speak now or forever hold your peace!
- Steph