Re: [Gambas-user] Format function changes date value

2018-05-19 Thread George
ppear that will be a problem. Thank you! -George On Sat, May 19, 2018 at 1:52 PM, Tobias Boege wrote: > On Sat, 19 May 2018, George wrote: > > > CDate uses UTC and, without the time information in the string, it > would > > store midnight. Format uses local time. > > >

Re: [Gambas-user] Format function changes date value

2018-05-19 Thread George
I noticed a post from Benoît in another thread that this mailing list has been deprecated, so I'm going to repost this in u...@lists.gambas-basic.org On Sat, May 19, 2018 at 1:20 PM, George wrote: > > CDate uses UTC and, without the time information in the string, it would >

Re: [Gambas-user] Format function changes date value

2018-05-19 Thread George
> CDate uses UTC and, without the time information in the string, it would store midnight. Format uses local time. That is definitely part of the issue. My local time is GMT-04, and here's what I get when specifying the time in my test: Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu Test d

Re: [Gambas-user] Format function changes date value

2018-05-19 Thread George
Sorry, I should have added that I'm on version 3.11.2 On Sat, May 19, 2018 at 9:27 AM, George wrote: > I'm using the repository 'http://ppa.launchpad.net/ > gambas-team/gambas3/ubuntu' > > Is there something that's more up-to-date? > > On Sat, May 19

Re: [Gambas-user] Format function changes date value

2018-05-19 Thread George
Result: Main.Main.9: Test date: 5/4/2018 Formatted: 05/04/18 ven > > Regards > Gianluigi > > 2018-05-19 14:54 GMT+02:00 George : > > > When using the Format function to format a date, the date gets offset by > 1 > > day. Here's an example: > > > >

[Gambas-user] Format function changes date value

2018-05-19 Thread George
When using the Format function to format a date, the date gets offset by 1 day. Here's an example: Dim zTestDate As String Dim zTestResult As String zTestDate = "5/4/2018" zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd") Debug "Test date: " & zTestDate & " Formatted: " & zTestResu

[Gambas-user] BUG: Textlabel contents not displaying when value changes from ""

2010-12-09 Thread George
ed on whether or not it was zero. This solved my issue, but I wanted to report the bug. I'm running version 2.22 -George -- ___ Gambas-user mailing list Gambas-user@lists.

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-08 Thread George
m in business. It took me a few tries to get everything working again, but it's up and running, and I'm no longer getting the error on the date calculation. Thanks to you and Benoît for you help & quick replies. -George

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread George
2010/12/4 Benoît Minisini : >> > >> > Gambas 2.19/64 Suse11.3 locale Hong Kong: >> > >> > PRINT DateAdd(CDate("2/13/2010"), gb.month, -36) >> > PRINT DateAdd(CDate("3/28/2010"), gb.month, -37) >> > PRINT DateAdd(CDate("4/13/2010"), gb.month, -38) >> > produces >> > 13/02/07 >> > 28/02/07 >> > 13/02

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread George
I'd gone off onto other projects, and am just revisiting this... I am currently running version 2.22.0 and am still getting the error described above. If the bug had been fixed in an earlier version, it seems to have crept back in. My Ubuntu version is currently 10.04 LTS (Lucid Lynx) Thank

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-02-13 Thread George
Benoît, Thanks for the quick response. I had thought my Gambas was up-to-date, but apparently the repository I was using is not current. At least I'm aware of that now. Thank you, -George 2010/2/13 Benoît Minisini : > The bug has been fixed in revision #2697. > > Regards, &

[Gambas-user] BUG: Problem with DateAdd function

2010-02-13 Thread George
I've run into a strange problem with the DateAdd function, when trying to subtract from the current date by months. I initially hit the problem with the following (values are hard-coded for clarity): DateAdd(cdate("2/13/2010"),gb.month,-37) It seems that any combination of Date and Interval tha