Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 4E478478F28 for ; Fri, 21 Jun 2002 18:53:10 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 322AF4774CE for ; Fri, 21 Jun 2002 17:35:49 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5LLZh128948; Fri, 21 Jun 2002 17:35:44 -0400 (EDT) To: tswan@idigx.com Cc: Felipe Nascimento , pgsql-admin@postgresql.org Subject: Re: time stamp In-reply-to: <3D13662D.4000803@idigx.com> References: <19877.1024672442@sss.pgh.pa.us> <3D13662D.4000803@idigx.com> Comments: In-reply-to Thomas Swan message dated "Fri, 21 Jun 2002 12:45:17 -0500" Date: Fri, 21 Jun 2002 17:35:43 -0400 Message-ID: <28945.1024695343@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200206/185 X-Sequence-Number: 4619 Thomas Swan 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