[Gambas-user] Bug?

Benoit Minisini gambas at ...1...
Wed Jan 10 10:42:42 CET 2007


On Tuesday 09 January 2007 17:04, Leonardo Miliani wrote:
> Benoit Minisini ha scritto:
> > On Sunday 07 January 2007 23:38, Leonardo Miliani wrote:
> >> Try this:
> >> 1) open a console and type in
> >> ?date("01/01/2007")
> >>
> >> 2) try it several times...
> >>
> >> Why does Gambas print random dates?
> >
> > Strange, I get a "Invalid date" error message.
>
> That's incredible!!!!
> Now I'm getting the same message, "Invalid date"!
> But I can surely affirm that I was getting random dates....
> I don't know how, I don't know why...
> The only thing that I know is that I'm writing a big program and
> sometimes I use the console to check the format of the output of a
> function before use it; I'd tried that function and got the error I've
> reported... :-?

I found the bug: The Date() argument was used as a Date datatype without first 
converting it, so you got random results.

Regards,

-- 
Benoit Minisini




More information about the User mailing list