pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: tswan@idigx.com
Cc: Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: time stamp
Date: Fri, 21 Jun 2002 17:35:43 -0400
Message-ID: <28945.1024695343@sss.pgh.pa.us> (raw)
In-Reply-To: <3D13662D.4000803@idigx.com>
References: <A1D265B81E168745B876193655F97F8D4BFAAF@mvescexc01.esc.multivalor.com.br>
	<19877.1024672442@sss.pgh.pa.us>
	<3D13662D.4000803@idigx.com>

Thomas Swan <tswan@idigx.com> writes:
>> No, it won't.  If the user has TimeZone set to -05, as he should, then
>> his input of '2002-06-20 12:00:00' will be read as '2002-06-20 12:00:00-05'.
>> And it will be displayed to him that way.  But if someone else who
>> has TimeZone set differently looks at the stored value, it will be shown
>> to them properly converted into their timezone.
>> 
> This can be a problem if the client is a web application in a fixed 
> timezone and the person viewing the results is in a different time zone.

If the webserver sets its session TimeZone according to the end user's
preference, everything will work just fine.  I am not sure how you
expect Postgres to intuit the proper timezone to use in this scenario
without any cooperation from the webserver...

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <28945.1024695343@sss.pgh.pa.us>
Permalink:  ../28945.1024695343@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28945.1024695343@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tswan@idigx.com, Felipe.Nascimento@multivalor.com.br
  Subject: Re: time stamp
  In-Reply-To: <28945.1024695343@sss.pgh.pa.us>
  References: <A1D265B81E168745B876193655F97F8D4BFAAF@mvescexc01.esc.multivalor.com.br> <19877.1024672442@sss.pgh.pa.us> <3D13662D.4000803@idigx.com> <28945.1024695343@sss.pgh.pa.us>

* 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