pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: the6campbells <the6campbells@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: question about timestamp with tz
Date: Thu, 22 Oct 2009 17:26:37 -0600
Message-ID: <dcc563d10910221626v1a8c385fw1caeef0934474103@mail.gmail.com> (raw)
In-Reply-To: <22431f1b0910221341l371b8303w9b3a525afa598d1@mail.gmail.com>
References: <22431f1b0910221341l371b8303w9b3a525afa598d1@mail.gmail.com>

On Thu, Oct 22, 2009 at 2:41 PM, the6campbells <the6campbells@gmail.com> wrote:
> Question.. is there a way that I can get Postgres to return the tz as
> supplied on the insert statement

PostgreSQL converts the timezone to GMT and stores it with no offset,
then adds an offset based on the TZ of the client requesting it back
later.

If you want to store the offset you'll have to do it yourself.  Note
that offset does not necessarily = timezone...



view thread (3+ messages)

Message-ID: <dcc563d10910221626v1a8c385fw1caeef0934474103@mail.gmail.com>
Permalink:  ../dcc563d10910221626v1a8c385fw1caeef0934474103@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10910221626v1a8c385fw1caeef0934474103@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@gmail.com, the6campbells@gmail.com
  Subject: Re: question about timestamp with tz
  In-Reply-To: <dcc563d10910221626v1a8c385fw1caeef0934474103@mail.gmail.com>

* 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