Re: [gnome-db]Problems with a field date



On 18 May 2001 12:04:20 -0500, Branly Abendano wrote:
> I found the problem.
> 
> I think that the problem is with glib
> I am using glib-1.2.10
> 
> I checked this with code:
> 
> 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
> 
> LIBGDA/providers/gda-postgres-server/gda-postgres-recordset.c call to
> g_date_new_dmy(stm->tm_mday, stm->tm_mon, stm->tm_year+1900)
> 
> This function g_date_new_dmy valid the dates with the function
> g_date_valid_dmy(day,month,year)
> and here is the problem because to LIBGDA return FALSE
> 
> 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
> 
> 
> If someone knows the list of glib to ask about the problem
> 
try in gtk-devel-list gnome org

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> <rodrigo ximian com>
http://www.gnome-db.org/





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