[Gambas-user] problem with the CDate function

Gianluigi bagonergi at gmail.com
Wed May 2 15:38:09 CEST 2018


2018-05-02 15:18 GMT+02:00 Mayost Sharon <sharon at 455.co.il>:

> Hello
>
> Operating system: Fedora 27 64 BIT
> Gambas 3.10.0
>
> I have a problem with the CDate function when I run the example that
> appears in this
> documentation:
>
> It takes me back one day
>
> I run:
>
>
> Print CDate ("09/06/1972 01:45:12")
>
> And it returns to me:
>
> 09/05/1972 22:45:12
>
>
You must use Date and not CDate which locates the UTC date [0].

Regards
Gianluigi
[0] https://en.wikipedia.org/wiki/Coordinated_Universal_Time



> --------------------------------------------------
>
> This is the Gambas Mailing List:
> https://lists.gambas-basic.org/listinfo/user
>
> Search the list:
> https://lists.gambas-basic.org/cgi-bin/search.cgi
>
> Hosted by https://www.hostsharing.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180502/447c8b90/attachment.html>


More information about the User mailing list