Skip site navigation (1) Skip section navigation (2)

Re: LOCALTIMESTAMP has wrong time zone

From: "Jonathan Brinkman" <JB(at)BlackSkyTech(dot)com>
To: "'Kevin Grittner'" <Kevin(dot)Grittner(at)wicourts(dot)gov>,<pgsql-bugs(at)postgresql(dot)org>
Subject: Re: LOCALTIMESTAMP has wrong time zone
Date: 2011-02-24 22:38:55
Message-ID: 000a01cbd473$9f317fe0$dd947fa0$@com (view raw or flat)
Thread:
Lists: pgsql-bugs
Well, here is the CREATE TABLE if that's what you mean:

CREATE TABLE "clientdata"."general_comments" (
  "commentid" INTEGER DEFAULT nextval('general_comments_seq'::regclass) NOT
NULL, 
  "commentvalue" VARCHAR(255) NOT NULL, 
  "personid" INTEGER, 
  "userid" INTEGER NOT NULL, 
  "commentdatetime" TIMESTAMP WITHOUT TIME ZONE DEFAULT
timezone('EST'::text, now()) NOT NULL, 
  "createddatetime" TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT now(), 
  "createddatetime2" TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT
'now'::text::timestamp without time zone, 
  CONSTRAINT "pk_general_comments_commentid" PRIMARY KEY("commentid"), 
) WITH OIDS;


-----Original Message-----
From: Kevin Grittner [mailto:Kevin(dot)Grittner(at)wicourts(dot)gov] 
Sent: Thursday, February 24, 2011 5:06 PM
To: JB(at)BlackSkyTech(dot)com; pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] LOCALTIMESTAMP has wrong time zone

"Jonathan Brinkman" <JB(at)BlackSkyTech(dot)com> wrote:
 
> My default timestamps in my database all are +5 hours in the future
 
Can you copy paste actual statements and results?
 
-Kevin


In response to

Responses

pgsql-bugs by date

Next:From: Jonathan BrinkmanDate: 2011-02-24 22:43:38
Subject: Re: LOCALTIMESTAMP has wrong time zone
Previous:From: Tom LaneDate: 2011-02-24 22:35:18
Subject: Re: LOCALTIMESTAMP has wrong time zone

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group