[Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-15 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1068&from=L21haW4- Gianluigi GRADASCHI changed the state of the bug to: Opened. -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi proces

[Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-15 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1068&from=L21haW4- Gianluigi GRADASCHI changed the state of the bug to: Rejected. -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi proc

[Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-15 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1068&from=L21haW4- Gianluigi GRADASCHI changed the state of the bug to: Rejected. -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi proc

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-15 Thread Gianluigi
OK if in Trunk I write: Public Sub Main() Print CDate(Val("1/1/2017")) ' > 01/01/2017 00:00:00 End Sorry but I do not know, because the rev.7983 is earlier the 3.9.2. Regards Gianluigi 2017-01-15 16:41 GMT+01:00 Jussi Lahtinen : > Sorry, the date bug was fixed in revision 7983. So 3.9.2 s

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-15 Thread Jussi Lahtinen
Sorry, the date bug was fixed in revision 7983. So 3.9.2 still has the bug. If your string is in local time, then convert it to date using val(). CDate() assumes UTF and your timezone is UTF+1, thus you see the difference. Jussi On Sun, Jan 15, 2017 at 4:41 PM, Gianluigi wrote: > I forgotten:

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-15 Thread Gianluigi
I forgotten: Yes with exactli same program: Public Sub Main() Print CDate("1/1/2017") End 2017-01-15 14:52 GMT+01:00 Gianluigi : > No Jussi seems all the same. > > My computer: > > LANG=it_IT.UTF-8 > LANGUAGE=it > LC_CTYPE="it_IT.UTF-8" > LC_NUMERIC="it_IT.UTF-8" > LC_TIME="it_IT.UTF-8" > LC

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-15 Thread Gianluigi
No Jussi seems all the same. My computer: LANG=it_IT.UTF-8 LANGUAGE=it LC_CTYPE="it_IT.UTF-8" LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPH

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-14 Thread Jussi Lahtinen
With the exactly same program? Then maybe the computers have different localization settings. Try command "locale" on terminal to see if there are differences. Jussi On Sat, Jan 14, 2017 at 9:28 PM, Gianluigi wrote: > But in another computer with 3.9.2 the result is 01/01/2017 00:00:00 > > 201

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-14 Thread Gianluigi
But in another computer with 3.9.2 the result is 01/01/2017 00:00:00 2017-01-14 20:13 GMT+01:00 Jussi Lahtinen : > It's because of timezone conversion. Not a bug. > > > Jussi > > On Sat, Jan 14, 2017 at 8:42 PM, wrote: > > > http://gambaswiki.org/bugtracker/edit?object=BUG.1068&from=L21haW4- > >

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-14 Thread Jussi Lahtinen
It's because of timezone conversion. Not a bug. Jussi On Sat, Jan 14, 2017 at 8:42 PM, wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1068&from=L21haW4- > > Gianluigi GRADASCHI added an attachment: > > CDateTest-0.0.1.tar.gz > > > > --

[Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-14 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1068&from=L21haW4- Gianluigi GRADASCHI added an attachment: CDateTest-0.0.1.tar.gz -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi pro

[Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year

2017-01-14 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1068&from=L21haW4- Gianluigi GRADASCHI reported a new bug. Summary --- CDate: strange behavior on first day of year Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : Unknown Description -