Re: gdatetime values out of range

2017-05-05 Thread Rafal Luzynski
5.05.2017 12:32 Andrea Zagli via gtk-list wrote: > > > is it normal that if i pass values out of range to function > g_date_time_new_local it returns a valida date? > > glib 2.50.3 debian sid > > try this code: it returns 2017-03-02, instead i expected NULL > [cut] The documentation of g_date_tim

gdatetime values out of range

2017-05-05 Thread Andrea Zagli via gtk-list
is it normal that if i pass values out of range to function g_date_time_new_local it returns a valida date? glib 2.50.3 debian sid try this code: it returns 2017-03-02, instead i expected NULL #include int main (int argc, char *argv[]) { GDateTime *gdt; gchar *str;