Bit unlogical calender issue

in gtkmm i must substract 1 from month for it to show properly. i dont have to susbstract for day neither for year but i must do it for month… is it bug?

void rhea::PickupDT::setValue(Glib::DateTime val){
   calendar->property_day().set_value(val.get_day_of_month());
   calendar->property_month().set_value(val.get_month()-1);
   calendar->property_year().set_value(val.get_year());
}

glibmm and gtkmm wrap API in glib and gtk.
In GDateTime January is month 1. In GtkCalendar January is month 0.
That’s why it’s unlogical in Glib::DateTime and Gtk::Calendar, too.

You can use Gtk::Calendar::select_day().

void rhea::PickupDT::setValue(Glib::DateTime val)
{
   calendar->select_day(val);
}

thank you i didnt think of it …