[Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed May 16 22:13:24 CEST 2018


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

Damien COTTIER reported a new bug.

Summary
-------

Converting date to string behavior change between 3.10 and 3.11

Type             : Bug
Priority         : Medium
Gambas version   : Unknown
Product          : Unknown


Description
-----------

Since ppa of gambas for ubuntu 16.04 and 18.04
Several user of Laurux report issue due to date, after investigation, it show that behavior of
converting Date type to string change between 3.10 and 3.11.

before converting date to string return localtime (without GMT offset), now it return UTC producing -2 hours in date
on each conversion so 01/01/2018 00:00 will return 31/12/2017 22:00.

simple example to reproduce

  dte As String

  Print Now
  dte = Now
  Print dte

Console ouput
  14/05/2018 01:38:02
  05/13/2018 23:38:02.916


System information
------------------

gambas 3.11.2
Linux Ubuntu 16.04LTS amd64




More information about the User mailing list