X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 07467D1B456 for ; Thu, 15 Jan 2004 22:45:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 87341-07 for ; Thu, 15 Jan 2004 18:45:23 -0400 (AST) Received: from Ariel2.idahopower.com (unknown [204.76.195.72]) by svr1.postgresql.org (Postfix) with SMTP id 98798D1B449 for ; Thu, 15 Jan 2004 18:45:20 -0400 (AST) Received: from 204.76.195.33 by Ariel2.idahopower.com with ESMTP (IPCo Mail Relay at your service (MMS v4.7);); Thu, 15 Jan 2004 15:40:05 -0700 X-Server-Uuid: c4da1ae6-7048-11d2-bc8e-00a083360239 Received: from bedford.idacorp.local ([172.18.201.66]) by midway.idacorp.local with Microsoft SMTPSVC(5.0.2195.6713); Thu, 15 Jan 2004 15:44:48 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Subject: timestamptz Insert Date: Thu, 15 Jan 2004 15:41:03 -0700 Message-ID: <71B8A8BEC516CF46835CA629156CF21110381A@bedford.idacorp.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: timestamptz Insert Thread-Index: AcPbuKfAIZi38XxqTIGDszu068xoBw== From: "Seader, Cameron" To: pgsql-php@postgresql.org X-OriginalArrivalTime: 15 Jan 2004 22:44:48.0453 (UTC) FILETIME=[2E0CCF50:01C3DBB9] X-WSS-ID: 6C19C94E3355994-15-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200401/13 X-Sequence-Number: 2529 hi, I am having trouble with the following SQL insert $createtbl =3D "CREATE TABLE $table ("; $createtbl .=3D "UTCTime timestamptz,";=20 $createtbl .=3D "error text,"; $createtbl .=3D "lowalarm bigint,";=20 $createtbl .=3D "highalarm bigint";=20 $createtbl .=3D "$points"; $createtbl .=3D ") "; When i insert data into the timestamptz field it is automatically adding o= n the time zone of MST which is not correct. The data that is being inserte= d is not MST it is GMT. how do i make it insert as GMT.=20 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 en= d 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 int= ended recipient, you are hereby notified that any disclosure, copying, dist= ribution, or use of the information contained herein (including any relianc= e thereon) is STRICTLY PROHIBITED. If you received this transmission in err= or, please immediately contact the sender and destroy the material in its e= ntirety, whether in electronic or hard copy format. Thank you. A2