pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lynna Landstreet <lynna@spidersilk.net>
To: Gavin M. Roy <gmr@ehpg.net>
To: pgsql-php@postgresql.org
Subject: Re: Times and time zones
Date: Wed, 20 Jul 2005 21:30:04 -0400
Message-ID: <BF0472DC.1BA75%lynna@spidersilk.net> (raw)
In-Reply-To: <6F13DAFC-577D-4EE3-B170-18B13D8AA7FD@ehpg.net>

On 7/20/05 7:36 PM, Gavin M. Roy <gmr@ehpg.net> wrote:

> Why not just tell PostgreSQL the timezone for the user and use
> timestamp with timezone and let pgsql do the rest?  I believe it's
> SET TIMEZONE '-8'; for PST/PDT, etc.

That command works for an entire session, correct? Unfortunately, this is a
travel-related site, so sometimes there are going to be arrival and
departure times in different time zones, so I don't think that would work in
this case. But it's likely to be useful in other applications, so thank you
for the info.


Lynna

-- 
Spider Silk Design - http://www.spidersilk.net
509 St Clair W Box 73576, Toronto ON Canada M6C 1C0
Tel 416.651.2899 - Toll Free 1.866.651.2899 - Cell 416.873.9289




view thread (5+ messages)

Message-ID: <BF0472DC.1BA75%lynna@spidersilk.net>
Permalink:  ../BF0472DC.1BA75%25lynna@spidersilk.net/
Also on:    postgresql.org/message-id/BF0472DC.1BA75%lynna@spidersilk.net

 · 

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: lynna@spidersilk.net, gmr@ehpg.net
  Subject: Re: Times and time zones
  In-Reply-To: <BF0472DC.1BA75%lynna@spidersilk.net>
  References: <6F13DAFC-577D-4EE3-B170-18B13D8AA7FD@ehpg.net> <BF0472DC.1BA75%lynna@spidersilk.net>

* 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