Re: [lazarus] Zeos TdateTime

2005-12-04 Thread Luiz Americo Pereira Camara
Em Dom, 2005-12-04 às 10:03 +0100, Michael Van Canneyt escreveu: > > On Sat, 3 Dec 2005, Luiz Americo Pereira Camara wrote: > > > Em Sáb, 2005-12-03 à s 15:17 +0100, Michael Van Canneyt escreveu: > > > > > > On Fri, 2 Dec 2005, Luiz Americo Pereira Camara wrote: > > > > > > > Em Sex, 2005-12-02

Re: [lazarus] Zeos TdateTime

2005-12-04 Thread Michael Van Canneyt
On Sat, 3 Dec 2005, Luiz Americo Pereira Camara wrote: > Em Sáb, 2005-12-03 às 15:17 +0100, Michael Van Canneyt escreveu: > > > > On Fri, 2 Dec 2005, Luiz Americo Pereira Camara wrote: > > > > > Em Sex, 2005-12-02 Ã s 18:26 +0100, Michael Van Canneyt escreveu: > > > > > > > > On Fri, 2 Dec 20

Re: [lazarus] Zeos TdateTime

2005-12-03 Thread Luiz Americo Pereira Camara
Em Sáb, 2005-12-03 às 15:17 +0100, Michael Van Canneyt escreveu: > > On Fri, 2 Dec 2005, Luiz Americo Pereira Camara wrote: > > > Em Sex, 2005-12-02 Ã s 18:26 +0100, Michael Van Canneyt escreveu: > > > > > > On Fri, 2 Dec 2005, Luiz Americo wrote: > > > > > > > > De: Michael Van Canneyt <[EMAIL

Re: [lazarus] Zeos TdateTime

2005-12-03 Thread Michael Van Canneyt
On Fri, 2 Dec 2005, Luiz Americo Pereira Camara wrote: > Em Sex, 2005-12-02 às 18:26 +0100, Michael Van Canneyt escreveu: > > > > On Fri, 2 Dec 2005, Luiz Americo wrote: > > > > > > De: Michael Van Canneyt <[EMAIL PROTECTED]> > > > > > > >> How about sqliteds? > > > > > > > > I'm still work

Re: [lazarus] Zeos TdateTime

2005-12-02 Thread Luiz Americo Pereira Camara
Em Sex, 2005-12-02 às 18:26 +0100, Michael Van Canneyt escreveu: > > On Fri, 2 Dec 2005, Luiz Americo wrote: > > > > De: Michael Van Canneyt <[EMAIL PROTECTED]> > > > > >> How about sqliteds? > > > > > > I'm still working on that; I'm using the components for an article, > > > so you can be

Re: [lazarus] Zeos TdateTime

2005-12-02 Thread Michael Van Canneyt
On Fri, 2 Dec 2005, Luiz Americo wrote: > > De: Michael Van Canneyt <[EMAIL PROTECTED]> > > >> How about sqliteds? > > > > I'm still working on that; I'm using the components for an article, > > so you can be sure that. > > Fixing it's easy. I can do that. > > > But there were some more pr

Re: [lazarus] Zeos TdateTime

2005-12-02 Thread luizmed
De: Michael Van Canneyt <[EMAIL PROTECTED]> How about sqliteds? I'm still working on that; I'm using the components for an article, so you can be sure that. Fixing it's easy. I can do that. But there were some more problems with sqliteds. It doesn't recognize VARCHAR fields, for instance.

Re: [lazarus] Zeos TdateTime

2005-12-02 Thread Luiz Americo
> De: Michael Van Canneyt <[EMAIL PROTECTED]> >> How about sqliteds? > > I'm still working on that; I'm using the components for an article, > so you can be sure that. Fixing it's easy. I can do that. > But there were some more problems with > sqliteds. It doesn't recognize VARCHAR fields, for

Re: [lazarus] Zeos TdateTime

2005-12-02 Thread Michael Van Canneyt
On Thu, 1 Dec 2005, Luiz Americo Pereira Camara wrote: Em Qui, 2005-12-01 às 15:26 +0100, Michael Van Canneyt escreveu: On Thu, 1 Dec 2005, Joost van der Sluis wrote: No, it's a FPC problem. Delphi actually does a dirty trick with the 'NativeFormat' parameter of GetFieldData. If NativeF

Re: [lazarus] Zeos TdateTime

2005-12-01 Thread Luiz Americo Pereira Camara
Em Qui, 2005-12-01 às 15:26 +0100, Michael Van Canneyt escreveu: > > On Thu, 1 Dec 2005, Joost van der Sluis wrote: > > > > >> No, it's a FPC problem. > >> > >> Delphi actually does a dirty trick with the 'NativeFormat' parameter of > >> GetFieldData. If NativeFormat is false, it does a recursive

Re: [lazarus] Zeos TdateTime

2005-12-01 Thread Luiz Americo Pereira Camara
Em Qui, 2005-12-01 às 17:29 -0300, Luiz Americo Pereira Camara escreveu: > Em Qua, 2005-11-30 às 13:25 +, Edwin Quijada escreveu: > > Hi, All!! > > I am developing my first app using Lazarus and now I have found a serious > > problem with date with Lazarus. This show me a date 1/10/1899. I hav

Re: [lazarus] Zeos TdateTime

2005-12-01 Thread Luiz Americo Pereira Camara
Em Qua, 2005-11-30 às 13:25 +, Edwin Quijada escreveu: > Hi, All!! > I am developing my first app using Lazarus and now I have found a serious > problem with date with Lazarus. This show me a date 1/10/1899. I have been > in zeos forum and they say that problem is for FPC not zeos. Somebody s

Re: [lazarus] Zeos TdateTime

2005-12-01 Thread Michael Van Canneyt
On Thu, 1 Dec 2005, Joost van der Sluis wrote: So we had to fix this in TDataset. I've done it, it's committed, if someone could please give it a test, I would be grateful. What if someone calls TDataset.GetfieldData(aField,aBuffer); ? Then it will return the wrong - TTimeStamp value. (iirc

Re: [lazarus] Zeos TdateTime

2005-12-01 Thread Michael Van Canneyt
On Thu, 1 Dec 2005, Joost van der Sluis wrote: No, it's a FPC problem. Delphi actually does a dirty trick with the 'NativeFormat' parameter of GetFieldData. If NativeFormat is false, it does a recursive call of itself with a temporary buffer, and then converts the data with an auxiliary met

Re: [lazarus] Zeos TdateTime

2005-12-01 Thread Joost van der Sluis
> > So we had to fix this in TDataset. > > I've done it, it's committed, if someone could please give it a test, > > I would be grateful. What if someone calls TDataset.GetfieldData(aField,aBuffer); ? Then it will return the wrong - TTimeStamp value. (iirc TField uses GetFieldData without Native

Re: [lazarus] Zeos TdateTime

2005-12-01 Thread Joost van der Sluis
> No, it's a FPC problem. > > Delphi actually does a dirty trick with the 'NativeFormat' parameter of > GetFieldData. If NativeFormat is false, it does a recursive call of > itself with a temporary buffer, and then converts the data with > an auxiliary method. > > This method takes care of t

Re: [lazarus] Zeos TdateTime

2005-11-30 Thread Micha Nelissen
Michael Van Canneyt wrote: This method takes care of the conversion TTimeStamp -> TDateTime because TDateTimeField sets calls GetFieldData with NativeFormat set to False. So we had to fix this in TDataset. I've done it, it's committed, if someone could please give it a test, I would be gratef

Re: [lazarus] Zeos TdateTime

2005-11-30 Thread Michael Van Canneyt
On Wed, 30 Nov 2005, Joost van der Sluis wrote: > > I am developing my first app using Lazarus and now I have found a serious > > problem with date with Lazarus. This show me a date 1/10/1899. I have been > > in zeos forum and they say that problem is for FPC not zeos. Somebody says > > that

Re: [lazarus] Zeos TdateTime

2005-11-30 Thread Joost van der Sluis
> I am developing my first app using Lazarus and now I have found a serious > problem with date with Lazarus. This show me a date 1/10/1899. I have been > in zeos forum and they say that problem is for FPC not zeos. Somebody says > that the problem is with the structure that use Lazarus to see t

[lazarus] Zeos TdateTime

2005-11-30 Thread Edwin Quijada
Hi, All!! I am developing my first app using Lazarus and now I have found a serious problem with date with Lazarus. This show me a date 1/10/1899. I have been in zeos forum and they say that problem is for FPC not zeos. Somebody says that the problem is with the structure that use Lazarus to se