date / time with Unidac in Postgres

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
markdueck
Posts: 6
Joined: Fri 27 Mar 2009 13:09

date / time with Unidac in Postgres

Post by markdueck » Wed 23 Dec 2009 06:03

Hi,

I just read a post that Unidac does not support special fields -

http://www.devart.com/forums/viewtopic. ... light=date

- does this mean that UniDAC does not do any type of date / time? I'm working on a project, and I cannot find a way to get the time saved into a time field.

Mark

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 24 Dec 2009 09:33

UniDAC supports date/time fields. What problem do you have with saving time values?

markdueck
Posts: 6
Joined: Fri 27 Mar 2009 13:09

Post by markdueck » Thu 24 Dec 2009 23:38

It tells me every time, no matter what format I save to the dataset, that the time is out of range.

The Time field is a field with no time zone. The front end/program works fine, but when applying updates to the database, Pg complains that: 'time out of range'

Postgres column is declared as a time field, IDE recognizes it as that and makes the TTimeField variable for it. It receives the time without a problem.

e.g. qryMainpost_time->Value = FormatDateTime("h:nn:ss am/pm",Now())

Regards

Post Reply