Timestamp problem
Posted: Wed 27 Jul 2005 08:00
Hi,
I'm trying to display a timestamp column in a textbox on a form through databinding. Unfortunately rowtimetz and rowtime always shows 01.01.2000 00:00:00 instead of their real values. Only rowdate shows the correct date.
We are using an autogenerated dataset through pgSqlAdapter.
Our table looks like this
CREATE TABLE t_datetest
(
rowid bigserial NOT NULL,
rowtimetz timestamp NOT NULL DEFAULT ('now'::text)::timestamp(6) with time zone,
rowtime timestamp NOT NULL DEFAULT ('now'::text)::timestamp(6) without time zone,
rowdate date NOT NULL DEFAULT (('now'::text)::date + 14),
rowtxt varchar(256),
CONSTRAINT primkey PRIMARY KEY (rowid)
)
WITH OIDS;
ALTER TABLE t_datetest OWNER TO postgres;
INSERT INTO t_datetest(rowtxt) VALUES('test');
This Problem occurs with Version 2.10 and 2.11. We use Postgres 8.0.3 on FreeBSD.
Any help is really appreciated.
Regards
Thomas
I'm trying to display a timestamp column in a textbox on a form through databinding. Unfortunately rowtimetz and rowtime always shows 01.01.2000 00:00:00 instead of their real values. Only rowdate shows the correct date.
We are using an autogenerated dataset through pgSqlAdapter.
Our table looks like this
CREATE TABLE t_datetest
(
rowid bigserial NOT NULL,
rowtimetz timestamp NOT NULL DEFAULT ('now'::text)::timestamp(6) with time zone,
rowtime timestamp NOT NULL DEFAULT ('now'::text)::timestamp(6) without time zone,
rowdate date NOT NULL DEFAULT (('now'::text)::date + 14),
rowtxt varchar(256),
CONSTRAINT primkey PRIMARY KEY (rowid)
)
WITH OIDS;
ALTER TABLE t_datetest OWNER TO postgres;
INSERT INTO t_datetest(rowtxt) VALUES('test');
This Problem occurs with Version 2.10 and 2.11. We use Postgres 8.0.3 on FreeBSD.
Any help is really appreciated.
Regards
Thomas