Hi
I updated zeos to version 7.2.10 and after that it started to present in dbgrig the date 12/30/1899. I do a simple query at the bank and everything is recorded right there. Has anyone been through this and can you please help?
Here are the attachments
Thanks
Fabio
Date 30/12/1899 - Delphi 7 + Postgresql + Zeos 7.2.10
-
- Fresh Boarder
- Posts: 4
- Joined: 07.06.2021, 21:29
- Location: São José dos Pinhais
- Contact:
Date 30/12/1899 - Delphi 7 + Postgresql + Zeos 7.2.10
You do not have the required permissions to view the files attached to this post.
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Date 30/12/1899 - Delphi 7 + Postgresql + Zeos 7.2.10
Hello Fabio,
we didn't see that kind of behaviour (yet). Which version of PostgreSQL do you use? Could you please create a sample application that shows the error and a small sql script that prepares a database (table + table data) for the sample app? This really would help in tacking down the problem.
Also - could you please try what happens if you use the latest 7.2 version from our subversion? If you prefer git, then there is a git repo at http://github.com/marsupilami79/zeoslib
Best regards,
Jan
we didn't see that kind of behaviour (yet). Which version of PostgreSQL do you use? Could you please create a sample application that shows the error and a small sql script that prepares a database (table + table data) for the sample app? This really would help in tacking down the problem.
Also - could you please try what happens if you use the latest 7.2 version from our subversion? If you prefer git, then there is a git repo at http://github.com/marsupilami79/zeoslib
Best regards,
Jan
-
- Fresh Boarder
- Posts: 4
- Joined: 07.06.2021, 21:29
- Location: São José dos Pinhais
- Contact:
Re: Date 30/12/1899 - Delphi 7 + Postgresql + Zeos 7.2.10
Hi.
Yes, I will provide the test script and program and post it for review.
As soon as I can do the test with the latest 7.2 I will post the result..
Thanks
Yes, I will provide the test script and program and post it for review.
As soon as I can do the test with the latest 7.2 I will post the result..
Thanks
-
- Fresh Boarder
- Posts: 4
- Joined: 07.06.2021, 21:29
- Location: São José dos Pinhais
- Contact:
Re: Date 30/12/1899 - Delphi 7 + Postgresql + Zeos 7.2.10
Hi.
Yesterday when preparing the test program to send for validation I verified that the date was correct! When I went to compare the banks I verified that the bank encoding was as LATIN1 and in the test it was as UTF8 which is the default. That way I will make the correction in the database encoding and everything is fine with Zeusdb.
Sorry for the inconvenience and thank you because otherwise I would not have identified the problem.
Fabio
Yesterday when preparing the test program to send for validation I verified that the date was correct! When I went to compare the banks I verified that the bank encoding was as LATIN1 and in the test it was as UTF8 which is the default. That way I will make the correction in the database encoding and everything is fine with Zeusdb.
Sorry for the inconvenience and thank you because otherwise I would not have identified the problem.
Fabio
You do not have the required permissions to view the files attached to this post.
-
- Fresh Boarder
- Posts: 4
- Joined: 07.06.2021, 21:29
- Location: São José dos Pinhais
- Contact:
Re: Date 30/12/1899 - Delphi 7 + Postgresql + Zeos 7.2.10
Complementing the information...
I always used the following configuration to set the bank:
ALTER DATABASE database SET DateStyle TO ISO,YMD;
In order for Zeusdb to work I had to switch to:
ALTER DATABASE database SET DateStyle TO ISO,YMD;
Was this really expected? Doesn't work with parameter the other way?
Thanks
Fabio
I always used the following configuration to set the bank:
ALTER DATABASE database SET DateStyle TO ISO,YMD;
In order for Zeusdb to work I had to switch to:
ALTER DATABASE database SET DateStyle TO ISO,YMD;
Was this really expected? Doesn't work with parameter the other way?
Thanks
Fabio
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Date 30/12/1899 - Delphi 7 + Postgresql + Zeos 7.2.10
Hello Fabio,
Zeos 7.2.4 introduced new parameters for handling date and time reading and writing. See the release notes, section "Date and Time format settings":
Best regards,
Jan
Zeos 7.2.4 introduced new parameters for handling date and time reading and writing. See the release notes, section "Date and Time format settings":
I think that should solve the problem.Zeos now supports specifying date and time format settings that will be used if Zeos doesn’t know how to correctly format date and time settings for the DBMS to understand them.
[...]
These settings can be used to solve problems on the following drivers:
- ...
- postgresql
- ...
Best regards,
Jan