pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Seader, Cameron <CSeader@idahopower.com>
To: pgsql-php@postgresql.org
Subject: timestamptz Insert
Date: Thu, 15 Jan 2004 15:41:03 -0700
Message-ID: <71B8A8BEC516CF46835CA629156CF21110381A@bedford.idacorp.local> (raw)

hi,
I am having trouble with the following SQL insert

 $createtbl  =  "CREATE TABLE $table (";
 $createtbl	.=	"UTCTime timestamptz,"; 
 $createtbl	.=	"error text,";
 $createtbl	.=	"lowalarm bigint,"; 
 $createtbl	.=  "highalarm bigint"; 
 $createtbl	.=	"$points";
 $createtbl	.=  ") ";

When i insert data into the timestamptz field it is  automatically adding on the time zone of MST which is not correct. The data that is being inserted is not MST it is GMT. how do i make it insert as GMT. 

note: it keeps the date and times the same, but it just adds the -07 to the end of the timestamp. when it should accually just be adding -00 to the end so that it stays in GMT format.

??? Do i need to do a SET timezone under psql on the database ???

thanks,
Cameron Seader
Operations Center Technician II
CSeader@Idahopower.com
1.208.388.2582 Office



[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.  Thank you.   A2





Message-ID: <71B8A8BEC516CF46835CA629156CF21110381A@bedford.idacorp.local>
Permalink:  ../71B8A8BEC516CF46835CA629156CF21110381A@bedford.idacorp.local/
Also on:    postgresql.org/message-id/71B8A8BEC516CF46835CA629156CF21110381A@bedford.idacorp.local

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: CSeader@idahopower.com
  Subject: Re: timestamptz Insert
  In-Reply-To: <71B8A8BEC516CF46835CA629156CF21110381A@bedford.idacorp.local>
  References: <71B8A8BEC516CF46835CA629156CF21110381A@bedford.idacorp.local>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox