X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 544A1D1CA01 for ; Tue, 5 Aug 2003 10:22:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 00589-03 for ; Tue, 5 Aug 2003 07:20:54 -0300 (ADT) Received: from TactiCom-MA1.TactiCom.com (unknown [216.235.244.20]) by svr1.postgresql.org (Postfix) with SMTP id C0775D1C4BF for ; Tue, 5 Aug 2003 07:21:58 -0300 (ADT) Received: from [203.124.133.194] by TactiCom-MA1.Nulinkinc.com (NTMail 4.30.0013/NU4135.00.d4f82e0c) with ESMTP id iezriaaa for ; Tue, 5 Aug 2003 06:21:45 -0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C35B3B.63879A5C" Subject: Timestamp in PG - 7.1 & 7.2 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Tue, 5 Aug 2003 15:51:52 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Timestamp in PG - 7.1 & 7.2 Thread-Index: AcNbOwEEcyyRf8b/EdedvgBABabtaA== From: "Anagha Joshi" To: X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=4.4 tagged_above=0.0 required=5.0 tests=HTML_FONT_COLOR_BLUE, RCVD_IN_DSBL X-Spam-Level: **** X-Archive-Number: 200308/36 X-Sequence-Number: 14652 This is a multi-part message in MIME format. ------_=_NextPart_001_01C35B3B.63879A5C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I've observed this: Here is output from PostgreSQL 7.1.2: =20 trapdb=3D# select cast(datetime(1057637700) as timestamp); ?column?=20=20=20=20=20=20=20=20=20=20 --------------------------- 2003-07-08 09:45:00+05:30 (1 row) =20 Here is output from PostgreSQL 7.2.4: =20 trapdb=3D# select cast(datetime(1057637700) as timestamp); timestamp --------------------------- 2003-07-07 22:45:00+05:30 (1 row) =20 I've migrated from PG - 7.1.2 to 7.2.4. =20 My timezone is set as "IST" in both cases. Is this any version problem or I'm missing any envirnonment setting? =20 Help is appreciated.... =20 Thanks, Anagha =20 ------_=_NextPart_001_01C35B3B.63879A5C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

<= span style=3D'font-size:12.0pt;color:blue'>I=92ve observed this:

Here is ou<= /span>tput from PostgreSQL 7.1.2:

<= span style=3D'font-size:12.0pt;color:blue'> 

trapdb=3D# select cast(datetime(1057637700) as timestamp);
         ?colum= n?         
---------------------------
 2003-07-08
09:45:00+05:30
(1 row)

<= span style=3D'font-size:12.0pt;color:blue'> 

Here is ou<= /span>tput from PostgreSQL 7.2.4:

 =

trapdb=3D# select cast(datetime(1057637700) as timestamp);
        
timestamp
---------------------------
 2003-07-07
22:45:00+05:30
(1 row)

 =

<= span style=3D'font-size:12.0pt;color:blue'>I=92ve migrated from PG - 7.1.2 to 7.2.4.

<= span style=3D'font-size:12.0pt;color:blue'> 

<= span style=3D'font-size:12.0pt;color:blue'>My timezone is set as =93IST=94 in both cases.

<= span style=3D'font-size:12.0pt;color:blue'>Is this any version problem or=A0 I=92m missing any envirnonmen<= /span>t setting?

<= span style=3D'font-size:12.0pt;color:blue'> 

<= span style=3D'font-size:12.0pt;color:blue'>Help is appreciated=85.

<= span style=3D'font-size:12.0pt;color:blue'> 

<= span style=3D'font-size:12.0pt;color:blue'>Thanks,

<= span style=3D'font-size:12.0pt;color:blue'>Anagha

 

=00 ------_=_NextPart_001_01C35B3B.63879A5C--