[Gambas-user] ?gambas bug dateadd with leap years???

Benoît Minisini gambas at ...1...
Tue Mar 13 13:58:55 CET 2012


LOL... This bug was the same that made Microsoft server cloud 
unavailable during twelve hours!

> On Wednesday 29 February 2012 10:39:49 Benoît Minisini wrote:
>> Le 29/02/2012 00:34, Benoît Minisini a écrit :
>>> Le 29/02/2012 00:08, Caveat a écrit :
>>>> Yeah, strange... you can add 12 months (temporary workaround?) but
>>>> adding a year results in an invalid date error...
>>>>
>>>>      Print DateAdd(Now, gb.Month, 12)   'OK
>>>>      Print DateAdd(Now, gb.Year, 1)     ' Gives invalid date
>>>>
>>>> Kind regards,
>>>> Caveat
>>>
>>> Because adding months automatically round the day down if it exceeds the
>>> number of days in the month. But not adding year (and so you get
>>> 29/2/2013, an invalid date).
>>>
>>> I will fix that.
>>>
>>> Regards,
>>
>> Fixed in revision #4515.
>>
>> Regards,
>>
> confirm fixed - I can now add my patient recalls again when years involved on
> leap year.
>
> Cool.... Thanks for the unbeleivably quick response.
>
> Richard
>


-- 
Benoît Minisini




More information about the User mailing list