[Gambas-bugtracker] Bug #1969: result of function Format () is error

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sun Nov 22 18:39:35 CET 2020


http://gambaswiki.org/bugtracker/edit?object=BUG.1969&from=L21haW4-

Comment #25 by Benoît MINISINI:

(By the way you should really put all your comments directly inside the bugtracker, or on the mailing-list. Nobody will think to look inside the docx joined files.)

Anyway:

About what you write in the "correct" line: is what Gambas returns really incorrect all the time? Or do you indicate what you'd like to see instead of what Gambas returns?

About your remarks after the table: you should really read all the wiki documentation about date & time in Gambas. All you see is done by design (there are some functions that print dates in UTC, others that print dates in local time...).

http://gambaswiki.org/wiki/doc/date

If you want to convert a locale date as a string into a Date type, you have to use the 'Val()' function. But your string must use the 'gb.General' format. Or you can do as you did in the 'docx' file.




More information about the Bugtracker mailing list