Problem with date



I am using glib-1.2.10 and I have an accounting application with gnome-db

I have a problem with some dates.

I probed this case:

day=31
month=12
year=2001

g_date_valid_day (day))       // Return True    This is OK
g_date_valid_month (month)      // Return True    This is OK
g_date_valid_year (year)     // Return True       This is OK

 g_date_valid_dmy (day,month, year)    // Return False

 g_date_days_in_month(month,year)      // Return 30 and must return 31
                                                            // because
december has 31 days

I proved with other date:

day=30
month=12
year=2001

And the result is OK. I don't know if just with day=31 is the problem







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]