Hi everybody...
I have a problem when i try to show a date from a table in my database postgresql 7.4.2
I'm using the last version of ZEOS to Delphi 7.
The object table returns date (30/12/1899), when i show it in a grid.
The same happens in delphi 5, so i never used ZEOS to show data, only to exec updates, etc...
Is there some fix, or patch to this error? Is some configuration?
Tks everybody!
Rodrigo
Date/Time Problem in Delphi 7
Moderators: gto, cipto_kh, EgonHugeist
-
- Fresh Boarder
- Posts: 3
- Joined: 22.11.2005, 14:24
-
- Fresh Boarder
- Posts: 3
- Joined: 22.11.2005, 14:24
Hi,
This is a bug from Zeos components on the interface with PostgreSQL.
The matter is that Zeos components only parse Date formats like 1999-02-01 (i.e. ANSI SQL Date Format), but PosgreSQL can be configured to support the SQL style (your Date format I guess..), the German style,...
To resolve this bug you have to modify the function
"ZDbcPostgreSQLResultSet.pas" --> "GetDate" to process Date formats like ##/##/####
Regards.
This is a bug from Zeos components on the interface with PostgreSQL.
The matter is that Zeos components only parse Date formats like 1999-02-01 (i.e. ANSI SQL Date Format), but PosgreSQL can be configured to support the SQL style (your Date format I guess..), the German style,...
To resolve this bug you have to modify the function
"ZDbcPostgreSQLResultSet.pas" --> "GetDate" to process Date formats like ##/##/####
Regards.