Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Odd timezone ba...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 9291 of 9808
Post > Topic >>

Odd timezone backend output

by ac@[EMAIL PROTECTED] (Andrew Chernow) May 1, 2008 at 09:53 AM

I am confused about the below results.  The backend is in EDT but it is 
converting timestamps into EST ... excluding NOW().  Regardless of the 
timezone provided, the backend is di****ng out EST.

[root@[EMAIL PROTECTED]
 ~]# uname -a
2.6.9-67.0.4.EL #1 Sun Feb 3 06:53:29 EST 2008 i686 athlon i386 GNU/Linux

[root@[EMAIL PROTECTED]
 ~]# date
Thu May  1 09:54:17 EDT 2008

postgres=# select version();
PostgreSQL 8.3devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 
3.4.6 20060404 (Red Hat 3.4.6-8)

postgres=# set datestyle='Postgres, MDY';
postgres=# select now();
                  now
-------------------------------------
  Thu May 01 09:28:53.164084 2008 EDT

postgres=# select '1997-01-29 12:31:42.92214 EDT'::timestamptz;
             timestamptz
------------------------------------
  Wed Jan 29 11:31:42.92214 1997 EST

postgres=# select '1997-01-29 12:31:42.92214 PST'::timestamptz;
             timestamptz
------------------------------------
  Wed Jan 29 15:31:42.92214 1997 EST

Is this expected behavior?  I am not sure if I am missing something or 
my results are wrong.  Is there a setting that needs tweaking?

-- 
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 10 Posts in Topic:
Odd timezone backend output
ac@[EMAIL PROTECTED] (An  2008-05-01 09:53:41 
Re: Odd timezone backend output
tgl@[EMAIL PROTECTED] (T  2008-05-01 10:11:37 
Re: Odd timezone backend output
ac@[EMAIL PROTECTED] (An  2008-05-01 10:56:36 
Re: Odd timezone backend output
andrew@[EMAIL PROTECTED]   2008-05-01 11:14:13 
Re: Odd timezone backend output
ac@[EMAIL PROTECTED] (An  2008-05-01 21:58:09 
Re: Odd timezone backend output
ajs@[EMAIL PROTECTED] (A  2008-05-02 09:39:32 
Re: Odd timezone backend output
ac@[EMAIL PROTECTED] (An  2008-05-02 09:54:20 
Re: Odd timezone backend output
andrew@[EMAIL PROTECTED]   2008-05-02 10:04:18 
Re: Odd timezone backend output
ajs@[EMAIL PROTECTED] (A  2008-05-02 10:25:09 
Re: Odd timezone backend output
ajs@[EMAIL PROTECTED] (A  2008-05-01 10:20:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 7:19:13 CDT 2008.