pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonathan Brinkman <JB@BlackSkyTech.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
To: 'Kevin Grittner' <Kevin.Grittner@wicourts.gov>
Cc: pgsql-bugs@postgresql.org
Subject: Re: LOCALTIMESTAMP has wrong time zone
Date: Thu, 24 Feb 2011 17:43:38 -0500
Message-ID: <000b01cbd474$47e70b50$d7b521f0$@com> (raw)
In-Reply-To: <29565.1298586918@sss.pgh.pa.us>
References: <000001cbd468$124cc720$36e65560$@com>
	<4D6681F1020000250003AFED@gw.wicourts.gov>
	<29565.1298586918@sss.pgh.pa.us>

postgres@Cloud-DB1:~$ psql beta_cms_main -c "show timezone;"
 TimeZone
----------
 EST
(1 row)

postgres@Cloud-DB1:~$ psql beta_cms_main -c "select now();"
              now
-------------------------------
 2011-02-24 17:42:40.023498-05
(1 row)

postgres@Cloud-DB1:~$ psql beta_cms_main -c "select localtimestamp;"
         timestamp
----------------------------
 2011-02-24 17:42:40.078052
(1 row)




All looks correct to me!
(it is 5:42PM EST now).



-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent: Thursday, February 24, 2011 5:35 PM
To: Kevin Grittner
Cc: JB@BlackSkyTech.com; pgsql-bugs@postgresql.org
Subject: Re: [BUGS] LOCALTIMESTAMP has wrong time zone

"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> "Jonathan Brinkman" <JB@BlackSkyTech.com> wrote:
>> My default timestamps in my database all are +5 hours in the future
 
> Can you copy paste actual statements and results?

In particular, let's see the result of these commands in psql:

	show timezone;
	select now();
	select localtimestamp;

What it sounds like to me is an incorrect default setting of "timezone"
but it's hard to be sure with no concrete data.

			regards, tom lane




view thread (9+ messages)  latest in thread

Message-ID: <000b01cbd474$47e70b50$d7b521f0$@com>
Permalink:  ../000b01cbd474$47e70b50$d7b521f0$@com/
Also on:    postgresql.org/message-id/000b01cbd474$47e70b50$d7b521f0$@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 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-bugs@postgresql.org
  Cc: JB@BlackSkyTech.com, tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov
  Subject: Re: LOCALTIMESTAMP has wrong time zone
  In-Reply-To: <000b01cbd474$47e70b50$d7b521f0$@com>
  References: <000001cbd468$124cc720$36e65560$@com> <4D6681F1020000250003AFED@gw.wicourts.gov> <29565.1298586918@sss.pgh.pa.us> <000b01cbd474$47e70b50$d7b521f0$@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