[Gambas-user] Possible CDATE issue Latest version

Brian G brian at westwoodsvcs.com
Sat Nov 19 17:26:13 CET 2022


----- On Nov 19, 2022, at 2:43 AM, Benoit Minisini benoit.minisini at gambas-basic.org wrote:

> Le 18/11/2022 à 20:36, Brian G a écrit :
>> With the latest version of gambas, I am getting the strangest issue, I
>> dont understand, not sure if its a bug
>> cdate returns different values if called with a class public variable.
>> Locks like possibly like in the last case
>> its return the gmt time.
>> 
>> Hello world                     11/18/2022 11:30:56
>> CDATE(now)                      11/18/2022 11:30:56
>> Eval("cdate(now)")              11/18/2022 11:30:56
>> dim thedate as string = "CDate(now)"
>> Try ddate = Eval(thedate)       11/18/2022 19:30:56.895
>> 
> 
> The printed strings are normal. What did you expect?
> 
> --
> Benoît Minisini.
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

I expect the times to all be the same, the last time printed is a different time zone
although the same expression is being evaluated.

Has anyone else tried to run the provided script

"Failure is the key to success; 
 each mistake teaches us something"  .. Morihei Ueshiba
Brian G



More information about the User mailing list